mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Get rid of nativeThread
No functional change.
This commit is contained in:
@@ -89,14 +89,13 @@ struct SplitPoint {
|
||||
/// ThreadBase struct is the base of the hierarchy from where we derive all the
|
||||
/// specialized thread classes.
|
||||
|
||||
struct ThreadBase {
|
||||
struct ThreadBase : public std::thread {
|
||||
|
||||
virtual ~ThreadBase() = default;
|
||||
virtual void idle_loop() = 0;
|
||||
void notify_one();
|
||||
void wait_for(volatile const bool& b);
|
||||
|
||||
std::thread nativeThread;
|
||||
Mutex mutex;
|
||||
Spinlock spinlock;
|
||||
ConditionVariable sleepCondition;
|
||||
|
||||
Reference in New Issue
Block a user