1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Document an assert in idle_loop()

Thanks to Bruno Causse for the clarification.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-10-11 19:56:07 +01:00
parent 2feeb206ff
commit 083ed1ce94

View file

@ -2384,6 +2384,8 @@ namespace {
lock_grab(&(sp->lock)); lock_grab(&(sp->lock));
lock_release(&(sp->lock)); lock_release(&(sp->lock));
// In helpful master concept a master can help only a sub-tree, and
// because here is all finished is not possible master is booked.
assert(threads[threadID].state == THREAD_AVAILABLE); assert(threads[threadID].state == THREAD_AVAILABLE);
threads[threadID].state = THREAD_SEARCHING; threads[threadID].state = THREAD_SEARCHING;