about summary refs log tree commit diff
path: root/src/rt/rust_port.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-03 02:44:56 -0800
committerBrian Anderson <banderson@mozilla.com>2012-03-05 19:39:55 -0800
commite3ccac8ed3b447ffecfbba7402760c083b9e51e2 (patch)
treedc6043d94fc12f8443ba7aa75d3945f083863a91 /src/rt/rust_port.cpp
parentfa566ad2fdf4b2bb63af87b2aa6fda3d5d48ce6d (diff)
downloadrust-e3ccac8ed3b447ffecfbba7402760c083b9e51e2.tar.gz
rust-e3ccac8ed3b447ffecfbba7402760c083b9e51e2.zip
rt: Renome rust_task::lock to port_lock
Diffstat (limited to 'src/rt/rust_port.cpp')
-rw-r--r--src/rt/rust_port.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_port.cpp b/src/rt/rust_port.cpp
index 5f46b9c4ca0..97fe6a892c8 100644
--- a/src/rt/rust_port.cpp
+++ b/src/rt/rust_port.cpp
@@ -21,8 +21,8 @@ rust_port::~rust_port() {
 }
 
 void rust_port::detach() {
-    I(task->thread, !task->lock.lock_held_by_current_thread());
-    scoped_lock with(task->lock);
+    I(task->thread, !task->port_lock.lock_held_by_current_thread());
+    scoped_lock with(task->port_lock);
     {
         task->release_port(id);
     }