File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 8878b128baddfa4ee38e4f9c43be75abe0edcd3d
2
+ refs/heads/master: 57459ec8ae402be358393455533cdf363866cdca
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ rust_chan::~rust_chan() {
32
32
void rust_chan::associate (maybe_proxy<rust_port> *port) {
33
33
this ->port = port;
34
34
if (port->is_proxy () == false ) {
35
+ scoped_lock with (port->referent ()->lock );
35
36
DLOG (kernel->sched , task,
36
37
" associating chan: 0x%" PRIxPTR " with port: 0x%" PRIxPTR,
37
38
this , port);
@@ -54,6 +55,7 @@ void rust_chan::disassociate() {
54
55
" Channel must be associated with a port." );
55
56
56
57
if (port->is_proxy () == false ) {
58
+ scoped_lock with (port->referent ()->lock );
57
59
DLOG (kernel->sched , task,
58
60
" disassociating chan: 0x%" PRIxPTR " from port: 0x%" PRIxPTR,
59
61
this , port->referent ());
You can’t perform that action at this time.
0 commit comments