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 9fdb622 commit ee6bfa3Copy full SHA for ee6bfa3
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: d0cb62ac90fb38a87b78691bf1436f6a14a67d71
+refs/heads/master: 3dd522b6b78fe32c44af571098d0ff4d1dcc9398
trunk/src/rt/rust_chan.cpp
@@ -51,7 +51,9 @@ bool rust_chan::is_associated() {
51
* Unlink this channel from its associated port.
52
*/
53
void rust_chan::disassociate() {
54
- // Precondition: port->referent()->lock must be held
+ A(kernel,
55
+ port->referent()->lock.lock_held_by_current_thread(),
56
+ "Port referent lock must be held to call rust_chan::disassociate");
57
A(kernel, is_associated(),
58
"Channel must be associated with a port.");
59
if (port->is_proxy() == false) {
0 commit comments