File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace ESPressio {
88 namespace Threads {
99
1010 // Define the Constructor and Destructor of `Thread` here
11- Thread::Thread (bool freeOnTerminate = false ) : _threadID(0 ) {
11+ Thread::Thread () : _threadID(0 ) {
1212 SetFreeOnTerminate (freeOnTerminate);
1313 _threadID = ThreadManager::GetInstance ()->GetThreadCount ();
1414 SetCoreID (ThreadManager::GetInstance ()->AddThread (this ));
Original file line number Diff line number Diff line change @@ -70,7 +70,11 @@ namespace ESPressio {
7070 }
7171 public:
7272 // Constructor/Destructor
73- Thread (bool freeOnTerminate = false );
73+ Thread ();
74+
75+ Thread (bool freeOnTerminate) : Thread() {
76+ SetFreeOnTerminate (freeOnTerminate);
77+ }
7478
7579 ~Thread ();
7680
You can’t perform that action at this time.
0 commit comments