rt: Port ref counts are protected by the task lock. Ick.
This commit is contained in:
parent
3d991bac6c
commit
f4ce965ce7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue