From: Marco Costalba Date: Sun, 13 Jan 2013 22:51:15 +0000 (+0100) Subject: Re-add the hack X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=99ae47716ac605286e60634632cb5eccac9a63ce;hp=99ae47716ac605286e60634632cb5eccac9a63ce;p=stockfish Re-add the hack This reverts commit 869c9244101 I misunderstood here. Actually it can happen that thread is created but still not entered idle_loop and at the same time start_searching() is called. Becuase 'do_sleep' is set start_searching() will set it to false and start the search, but when, at last, the thread enters idle_loop(), resets the flag and goes to sleep: not what we want. Revert the hack waiting for a better solution in the next patches. No functional change. ---