about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-18 13:37:00 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-18 13:38:20 -0800
commit0f339b481a8ae255f012f2218c8f5b5fc3d451ce (patch)
tree793eb5480c739ecd769cef6e2cbe84fdef8e70e5 /src/rt/rust_task.cpp
parent3cfcdb4bb279bab6f58b147486f5e2a54411b316 (diff)
downloadrust-0f339b481a8ae255f012f2218c8f5b5fc3d451ce.tar.gz
rust-0f339b481a8ae255f012f2218c8f5b5fc3d451ce.zip
rt: Remove a lock from task_start_wrapper that does nothing
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index a7d92b96e3c..848086dd368 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -210,9 +210,6 @@ void task_start_wrapper(spawn_args *a)
 #else
         A(task->sched, false, "Shouldn't happen");
 #endif
-    } else {
-        task->lock.lock();
-        task->lock.unlock();
     }
     task->ctx.next->swap(task->ctx);
 }