diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-03 02:44:56 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-05 19:39:55 -0800 |
| commit | e3ccac8ed3b447ffecfbba7402760c083b9e51e2 (patch) | |
| tree | dc6043d94fc12f8443ba7aa75d3945f083863a91 /src/rt/rust_builtin.cpp | |
| parent | fa566ad2fdf4b2bb63af87b2aa6fda3d5d48ce6d (diff) | |
| download | rust-e3ccac8ed3b447ffecfbba7402760c083b9e51e2.tar.gz rust-e3ccac8ed3b447ffecfbba7402760c083b9e51e2.zip | |
rt: Renome rust_task::lock to port_lock
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 2a210a7fb54..dcf01e4420e 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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 { |
