diff options
Diffstat (limited to 'library/multithreading.cpp')
-rw-r--r-- | library/multithreading.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/library/multithreading.cpp b/library/multithreading.cpp index c5f38605..099836de 100644 --- a/library/multithreading.cpp +++ b/library/multithreading.cpp @@ -34,6 +34,8 @@ */ class WorkerThread : public wxThread { + friend class UpdateWhileExecuting; + public: WorkerThread(UpdateWhileExecuting* handler) : readyToBeginProcessing(), @@ -43,8 +45,10 @@ public: threadHandler(handler) { } + ~WorkerThread() {} + ExitCode Entry() { readyToBeginProcessing.Lock(); //this lock needs to be called IN the thread => calling it from constructor(Main thread) would be useless @@ -71,7 +75,7 @@ public: return 0; } - +private: wxMutex readyToBeginProcessing; wxCondition beginProcessing; @@ -80,8 +84,6 @@ public: bool threadIsInitialized; bool threadExitIsRequested; - -private: UpdateWhileExecuting* threadHandler; }; |