mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Move wake_sleeping_thread() to Thread class
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -75,6 +75,12 @@ struct Thread {
|
||||
SplitPoint* volatile splitPoint;
|
||||
volatile int activeSplitPoints;
|
||||
SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS];
|
||||
|
||||
void wake_up() {
|
||||
lock_grab(&sleepLock);
|
||||
cond_signal(&sleepCond);
|
||||
lock_release(&sleepLock);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // !defined(THREAD_H_INCLUDED)
|
||||
|
||||
Reference in New Issue
Block a user