]> git.sesse.net Git - stockfish/commit
Fix a bug in timer loop
authorMarco Costalba <mcostalba@gmail.com>
Mon, 14 Jan 2013 18:32:30 +0000 (19:32 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 14 Jan 2013 18:32:30 +0000 (19:32 +0100)
commit78a953177397f3eb85cfee4398975e8519895e6b
tree33eb3d2f20e05f8ea9aac22492798a6c3490ed50
parentd1143794a01cd0540cf47e3415815cd60cde9422
Fix a bug in timer loop

Silly logic bug introduced in dda7de17e74d7e8

Timer thread, when msec = 0, instead of going
to sleep, calls check_time() in an endless loop.

Spotted and reported by snino64 due to abnormally
high CPU usage.

No functional change.
src/thread.cpp