mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Simplify locking in splitpoint search
One rule: Always lock before picking up a move. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
3c31776a20
commit
936cd5b83d
@@ -99,9 +99,4 @@ typedef CRITICAL_SECTION Lock;
|
||||
|
||||
#endif
|
||||
|
||||
static inline bool lock_grab_bool(Lock* x) {
|
||||
lock_grab(x);
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif // !defined(LOCK_H_INCLUDED)
|
||||
|
||||
Reference in New Issue
Block a user