From f7a727e8613ac453db4e4aa2c4c00140c8a5ee3f Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 3 Feb 2012 17:52:58 -0800 Subject: rt: Remove some silly locks in rust_scheduler --- src/rt/rust_scheduler.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/rt/rust_scheduler.cpp') 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 -- cgit 1.4.1-3-g733a5