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