about summary refs log tree commit diff
path: root/src/rt/rust_scheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_scheduler.cpp')
-rw-r--r--src/rt/rust_scheduler.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/rt/rust_scheduler.cpp b/src/rt/rust_scheduler.cpp
index 2af733db7ca..937960575cd 100644
--- a/src/rt/rust_scheduler.cpp
+++ b/src/rt/rust_scheduler.cpp
@@ -19,25 +19,21 @@ rust_scheduler::~rust_scheduler() {
 
 rust_task_thread *
 rust_scheduler::create_task_thread(int id) {
-    lock.lock();
     rust_srv *srv = this->srv->clone();
     rust_task_thread *thread =
         new (kernel, "rust_task_thread") rust_task_thread(this, srv, id);
     KLOG(kernel, kern, "created task thread: " PTR ", id: %d, index: %d",
           thread, id, thread->list_index);
-    lock.unlock();
     return thread;
 }
 
 void
 rust_scheduler::destroy_task_thread(rust_task_thread *thread) {
-    lock.lock();
     KLOG(kernel, kern, "deleting task thread: " PTR ", name: %s, index: %d",
         thread, thread->name, thread->list_index);
     rust_srv *srv = thread->srv;
     delete thread;
     delete srv;
-    lock.unlock();
 }
 
 void