diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-03 17:52:58 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-03 23:48:12 -0800 |
| commit | f7a727e8613ac453db4e4aa2c4c00140c8a5ee3f (patch) | |
| tree | 59f568a04acefb9c607ad76500812f46b26eb1bf /src | |
| parent | c7777f4fd97b053ca707b05fae0b4b793b189d3b (diff) | |
| download | rust-f7a727e8613ac453db4e4aa2c4c00140c8a5ee3f.tar.gz rust-f7a727e8613ac453db4e4aa2c4c00140c8a5ee3f.zip | |
rt: Remove some silly locks in rust_scheduler
Diffstat (limited to 'src')
| -rw-r--r-- | src/rt/rust_scheduler.cpp | 4 |
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 |
