diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-03 02:46:18 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-05 19:39:56 -0800 |
| commit | 93fa933a1926f953fa74b9b4908c0e6dc9b0a964 (patch) | |
| tree | 9f57404b2ec833a25f66b98eff4b32563d2a99ee /src/rt/rust_task.cpp | |
| parent | e3ccac8ed3b447ffecfbba7402760c083b9e51e2 (diff) | |
| download | rust-93fa933a1926f953fa74b9b4908c0e6dc9b0a964.tar.gz rust-93fa933a1926f953fa74b9b4908c0e6dc9b0a964.zip | |
rt: Move some locking from rust_port to rust_task
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index f2f3fa21c3e..c9838b193e6 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -481,7 +481,7 @@ rust_port_id rust_task::register_port(rust_port *port) { } void rust_task::release_port(rust_port_id id) { - I(thread, port_lock.lock_held_by_current_thread()); + scoped_lock with(port_lock); port_table.remove(id); } |
