We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8878b12 commit 57459ecCopy full SHA for 57459ec
src/rt/rust_chan.cpp
@@ -32,6 +32,7 @@ rust_chan::~rust_chan() {
32
void rust_chan::associate(maybe_proxy<rust_port> *port) {
33
this->port = port;
34
if (port->is_proxy() == false) {
35
+ scoped_lock with(port->referent()->lock);
36
DLOG(kernel->sched, task,
37
"associating chan: 0x%" PRIxPTR " with port: 0x%" PRIxPTR,
38
this, port);
@@ -54,6 +55,7 @@ void rust_chan::disassociate() {
54
55
"Channel must be associated with a port.");
56
57
58
59
60
"disassociating chan: 0x%" PRIxPTR " from port: 0x%" PRIxPTR,
61
this, port->referent());
0 commit comments