]> git.sesse.net Git - stockfish/commit
Add 'sleeping' flag to struct Thread
authorMarco Costalba <mcostalba@gmail.com>
Sat, 13 Feb 2010 10:22:57 +0000 (11:22 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 13 Feb 2010 10:28:33 +0000 (11:28 +0100)
commit6382324afda5cab5657863fa3e38de6c21fc55ed
treeff96403ff0fa1c5a64690d6c7431dbddd1d8c165
parentcb08413dc4e51ac246887613184b51b46bf11226
Add 'sleeping' flag to struct Thread

Will be used by future patches. Also:

- Renamed Idle in AllThreadsShouldSleep

- Explicitly inited AllThreadsShouldExit and AllThreadsShouldSleep
  in init_thread() instead of use an anonymous global initialization.

- Rewritten idle_loop() while condition to avoid a 'break' statement

No functional change.

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