Commit 86c00438 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

fix some minor bugs.

parent c1d0a930
......@@ -80,7 +80,7 @@ void scheduler_addunlock(struct scheduler *s, struct task *ta,
/* Write the unlock to the scheduler. */
const int ind = atomic_inc(&s->nr_unlocks);
s->unlocks[ind] = tb;
s->unlock_ind[ind] = s->tasks - ta;
s->unlock_ind[ind] = ta - s->tasks;
/* Release the scheduler. */
if (lock_unlock(&s->lock) != 0) error("Unable to unlock scheduler.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment