about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-03 02:46:18 -0800
committerBrian Anderson <banderson@mozilla.com>2012-03-05 19:39:56 -0800
commit93fa933a1926f953fa74b9b4908c0e6dc9b0a964 (patch)
tree9f57404b2ec833a25f66b98eff4b32563d2a99ee /src/rt/rust_task.cpp
parente3ccac8ed3b447ffecfbba7402760c083b9e51e2 (diff)
downloadrust-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.cpp2
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);
 }