We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
freeOnTerminate
Thread
1 parent b7933e7 commit 54889c0Copy full SHA for 54889c0
src/ESPressio_Thread.cpp
@@ -6,9 +6,10 @@
6
namespace ESPressio {
7
8
namespace Threads {
9
-
+
10
// Define the Constructor and Destructor of `Thread` here
11
- Thread::Thread() : _threadID(0) {
+ Thread::Thread(bool freeOnTerminate = false) : _threadID(0) {
12
+ SetFreeOnTerminate(freeOnTerminate);
13
_threadID = ThreadManager::GetInstance()->GetThreadCount();
14
SetCoreID(ThreadManager::GetInstance()->AddThread(this));
15
}
0 commit comments