Skip to content

Commit 4913937

Browse files
committed
---
yaml --- r: 12247 b: refs/heads/master c: 2d8ef73 h: refs/heads/master i: 12245: 3555a23 12243: 4063b3d 12239: 4c190f5 v: v3
1 parent 91817a8 commit 4913937

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c8dc6fcb4cd29e5fb6c509149871b869b951295d
2+
refs/heads/master: 2d8ef7387e737ce1d8ea6f6b9a75626529fff234
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rt/rust_sched_loop.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ rust_sched_loop::rust_sched_loop(rust_scheduler *sched,
4444

4545
void
4646
rust_sched_loop::activate(rust_task *task) {
47+
lock.must_have_lock();
4748
task->ctx.next = &c_context;
4849
DLOG(this, task, "descheduling...");
4950
lock.unlock();
@@ -147,6 +148,7 @@ rust_sched_loop::release_task(rust_task *task) {
147148
*/
148149
rust_task *
149150
rust_sched_loop::schedule_task() {
151+
lock.must_have_lock();
150152
I(this, this);
151153
// FIXME: in the face of failing tasks, this is not always right.
152154
// I(this, n_live_tasks() > 0);

0 commit comments

Comments
 (0)