Skip to content

Commit 6a74b03

Browse files
committed
---
yaml --- r: 8067 b: refs/heads/snap-stage3 c: f7a727e h: refs/heads/master i: 8065: 615886b 8063: 71d5518 v: v3
1 parent a75fb9b commit 6a74b03

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
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c7777f4fd97b053ca707b05fae0b4b793b189d3b
4+
refs/heads/snap-stage3: f7a727e8613ac453db4e4aa2c4c00140c8a5ee3f
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/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)