Skip to content

Commit 1eee53e

Browse files
committed
---
yaml --- r: 15253 b: refs/heads/try c: 2d8ef73 h: refs/heads/master i: 15251: a45a141 v: v3
1 parent c668646 commit 1eee53e

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
@@ -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: c8dc6fcb4cd29e5fb6c509149871b869b951295d
5+
refs/heads/try: 2d8ef7387e737ce1d8ea6f6b9a75626529fff234
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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)