rt: Port ref counts are protected by the task lock. Ick.
This commit is contained in:
@@ -511,7 +511,7 @@ rust_port_detach(rust_port *port) {
|
|||||||
// FIXME: Busy waiting until we're the only ref
|
// FIXME: Busy waiting until we're the only ref
|
||||||
bool done = false;
|
bool done = false;
|
||||||
while (!done) {
|
while (!done) {
|
||||||
scoped_lock with(port->lock);
|
scoped_lock with(task->lock);
|
||||||
done = port->ref_count == 1;
|
done = port->ref_count == 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user