Skip to content

Commit

Permalink
Revert "thread: Judge joinable before join"
Browse files Browse the repository at this point in the history
To fix:
thread.cpp: In destructor ‘virtual Thread::~Thread()’:
thread.cpp:71:19: error: ‘class NativeThread’ has no member named ‘joinable’
   71 |     if (stdThread.joinable()) {
      |                   ^~~~~~~~
make: *** [<builtin>: thread.o] Error 1

This reverts commit 2dfee5c.

Change-Id: I528404357c26d1781c3b2d9673ea6f60be38a995
  • Loading branch information
calcitem committed Dec 30, 2022
1 parent 2f70d7c commit e9d33c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ Thread::~Thread()

exit = true;
start_searching();
if (stdThread.joinable()) {
stdThread.join();
}
stdThread.join();
}

/// Thread::clear() reset histories, usually before a new game
Expand Down

0 comments on commit e9d33c1

Please sign in to comment.