]> git.sesse.net Git - stockfish/commit
Use fast SRWLOCK locks under Windows
authorMarco Costalba <mcostalba@gmail.com>
Sun, 17 Oct 2010 10:01:55 +0000 (11:01 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 17 Oct 2010 10:04:52 +0000 (11:04 +0100)
commit8fdc63525563f9a130b8356811a13746ab013f0f
treed3a7e733f11efcadac4cb4561af06cd3fe3db8e2
parent472971f8516eb068a3e93473b4d9f5c95e6874d4
Use fast SRWLOCK locks under Windows

They are fast and also have the same semantic of Linux ones.

This allow to simplify the code and especially to use
SleepConditionVariableSRW() to wait on a condition releaseing the lock,
this has the same semantic as pthread_cond_wait().

No functional change.

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