]> git.sesse.net Git - stockfish/blobdiff - src/lock.h
Simplify locking in sp_search and sp_search_pv
[stockfish] / src / lock.h
index 14fcd5d9b51309c7adb1b44b358a6ae0da35aa66..b17fb79bb73a2e61730dec7923eb94f01201cf5a 100644 (file)
@@ -99,5 +99,9 @@ typedef CRITICAL_SECTION Lock;
 
 #endif
 
+static inline bool lock_grab_bool(Lock* x) {
+    lock_grab(x);
+    return true;
+}
 
 #endif // !defined(LOCK_H_INCLUDED)