]> git.sesse.net Git - stockfish/blobdiff - src/thread_win32.h
Assorted English grammar changes
[stockfish] / src / thread_win32.h
index f4ab8cd964e18ea2714a2b2304f2061376cf5646..47516c62719d6de6bf2d89f0666f21ccd0bc6dd6 100644 (file)
 /// 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 <condition_variable>
 #include <mutex>