Reset search time as early as possible
authorMarco Costalba <mcostalba@gmail.com>
Sat, 31 Mar 2012 09:01:31 +0000 (10:01 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 31 Mar 2012 09:01:31 +0000 (10:01 +0100)
commitcc6c745b543e0cd94dea82deeed25572227f98ab
treec126c2f2f124a8b7318042c501a8f02cd49eef91
parentd033d5e06a604f601b157cb3d2a8450c5dc00474
Reset search time as early as possible

In particualr before to wake up main thread that
could take some random time. Until we don't reset
search time we are not able to correctly track
the elapsed search time and this can be dangerous
under extreme time pressure.

No functional change.

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