]> git.sesse.net Git - stockfish/commit
Remove an incorrect assert in wake_sleeping_threads()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 27 Feb 2010 11:01:07 +0000 (12:01 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 27 Feb 2010 11:01:07 +0000 (12:01 +0100)
commit111aa446625b79a61c6b55a151377592e72c3caf
tree38b4af373360844a1424c5896834b99d006b3c3e
parent29fb38976036d6691f6cbdf8990245ed74d79be2
Remove an incorrect assert in wake_sleeping_threads()

Currently there is no guarantee that threads are sleeping
when calling wake_sleeping_threads() because put_threads_to_sleep()
returns without waiting for threads to actually sleep.

Assert can be easily triggered calling put_threads_to_sleep() and
wake_sleeping_threads() in a tight loop.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp