]> git.sesse.net Git - stockfish/blobdiff - src/misc.cpp
Simplify locking usage
[stockfish] / src / misc.cpp
index d436ee92d8559f290facf2ba13f764ae98f31dfb..ae8b6ffbed302c7e0075d5ddfe29a9fcd3ecc4b9 100644 (file)
@@ -153,7 +153,7 @@ int cpu_count() {
 /// timed_wait() waits for msec milliseconds. It is mainly an helper to wrap
 /// conversion from milliseconds to struct timespec, as used by pthreads.
 
 /// timed_wait() waits for msec milliseconds. It is mainly an helper to wrap
 /// conversion from milliseconds to struct timespec, as used by pthreads.
 
-void timed_wait(WaitCondition* sleepCond, Lock* sleepLock, int msec) {
+void timed_wait(WaitCondition& sleepCond, Lock& sleepLock, int msec) {
 
 #if defined(_MSC_VER)
   int tm = msec;
 
 #if defined(_MSC_VER)
   int tm = msec;