mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Retire OLD_LOCKS option
And make CRITICAL_SECTION locks the only option for Windows. This guarantees backward compatibility with all the Windows versions (even XP and older) and an hassle free experience when compiling for Windows. Tests performed by Ingo and reported on talkchess confirm there is no speed penalty against the most modern SRW locks: http://www.talkchess.com/forum/viewtopic.php?t=41835&start=20 No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -34,11 +34,6 @@
|
||||
/// -DUSE_POPCNT | Add runtime support for use of popcnt asm-instruction. Works
|
||||
/// | only in 64-bit mode. For compiling requires hardware with
|
||||
/// | popcnt support.
|
||||
///
|
||||
/// -DOLD_LOCKS | Under Windows are used the fast Slim Reader/Writer (SRW)
|
||||
/// | Locks and Condition Variables: these are not supported by
|
||||
/// | Windows XP and older, to compile for those platforms you
|
||||
/// | should enable OLD_LOCKS.
|
||||
|
||||
#include <climits>
|
||||
#include <cstdlib>
|
||||
|
||||
Reference in New Issue
Block a user