rt: Port ref counts are protected by the task lock. Ick.

This commit is contained in:
Brian Anderson 2012-03-02 15:51:47 -08:00
parent 3d991bac6c
commit f4ce965ce7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}