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:
parent
2feeb206ff
commit
083ed1ce94
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue