Skip to content

Commit faf934e

Browse files
committed
---
yaml --- r: 14053 b: refs/heads/try c: f7a727e h: refs/heads/master i: 14051: d7e7376 v: v3
1 parent 62c3f59 commit faf934e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: c7777f4fd97b053ca707b05fae0b4b793b189d3b
5+
refs/heads/try: f7a727e8613ac453db4e4aa2c4c00140c8a5ee3f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rt/rust_scheduler.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,21 @@ rust_scheduler::~rust_scheduler() {
1919

2020
rust_task_thread *
2121
rust_scheduler::create_task_thread(int id) {
22-
lock.lock();
2322
rust_srv *srv = this->srv->clone();
2423
rust_task_thread *thread =
2524
new (kernel, "rust_task_thread") rust_task_thread(this, srv, id);
2625
KLOG(kernel, kern, "created task thread: " PTR ", id: %d, index: %d",
2726
thread, id, thread->list_index);
28-
lock.unlock();
2927
return thread;
3028
}
3129

3230
void
3331
rust_scheduler::destroy_task_thread(rust_task_thread *thread) {
34-
lock.lock();
3532
KLOG(kernel, kern, "deleting task thread: " PTR ", name: %s, index: %d",
3633
thread, thread->name, thread->list_index);
3734
rust_srv *srv = thread->srv;
3835
delete thread;
3936
delete srv;
40-
lock.unlock();
4137
}
4238

4339
void

0 commit comments

Comments
 (0)