X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread_win32.h;h=917563a3e2cf19ef9cc6d2bf0186f4447e71f60b;hp=f4ab8cd964e18ea2714a2b2304f2061376cf5646;hb=2198cd0524574f0d9df8c0ec9aaf14ad8c94402b;hpb=d4af15f682c1967450233ab62cba1a6c5d601df6 diff --git a/src/thread_win32.h b/src/thread_win32.h index f4ab8cd9..917563a3 100644 --- a/src/thread_win32.h +++ b/src/thread_win32.h @@ -2,7 +2,7 @@ Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad - Copyright (C) 2015-2016 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad + Copyright (C) 2015-2017 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,11 +25,11 @@ /// relies on libwinpthread. Currently libwinpthread implements mutexes directly /// on top of Windows semaphores. Semaphores, being kernel objects, require kernel /// mode transition in order to lock or unlock, which is very slow compared to -/// interlocked operations (about 30% slower on bench test). To workaround this +/// interlocked operations (about 30% slower on bench test). To work around this /// issue, we define our wrappers to the low level Win32 calls. We use critical /// sections to support Windows XP and older versions. Unfortunately, cond_wait() /// is racy between unlock() and WaitForSingleObject() but they have the same -/// speed performance of SRW locks. +/// speed performance as the SRW locks. #include #include