rt: Renome rust_task::lock to port_lock

This commit is contained in:
Brian Anderson
2012-03-03 02:44:56 -08:00
parent fa566ad2fd
commit e3ccac8ed3
5 changed files with 14 additions and 14 deletions

View File

@@ -489,7 +489,7 @@ rust_port_detach(rust_port *port) {
// FIXME: Busy waiting until we're the only ref
bool done = false;
while (!done) {
scoped_lock with(task->lock);
scoped_lock with(task->port_lock);
done = port->ref_count == 1;
}
}
@@ -528,7 +528,7 @@ chan_id_send(type_desc *t, rust_task_id target_task_id,
rust_port *port = target_task->get_port_by_id(target_port_id);
if(port) {
port->send(sptr);
scoped_lock with(target_task->lock);
scoped_lock with(target_task->port_lock);
port->deref();
sent = true;
} else {