]> git.sesse.net Git - stockfish/commitdiff
Do not wait for sleeping in init_threads()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 27 Feb 2010 12:26:04 +0000 (13:26 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 27 Feb 2010 12:26:04 +0000 (13:26 +0100)
We can't do it with full guarantee anyway because
there is always a possible race between the setting of
state to THREAD_SLEEPING and actual sleeping.

So just remove the not perfect code to avoid misunderstandings.
This reflects what we have done in wake_sleeping_threads() in
the previous patch.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found