mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08: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:
@@ -2384,6 +2384,8 @@ namespace {
|
||||
lock_grab(&(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);
|
||||
|
||||
threads[threadID].state = THREAD_SEARCHING;
|
||||
|
||||
Reference in New Issue
Block a user