summaryrefslogtreecommitdiff
path: root/library/multithreading.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/multithreading.cpp')
-rw-r--r--library/multithreading.cpp31
1 files changed, 2 insertions, 29 deletions
diff --git a/library/multithreading.cpp b/library/multithreading.cpp
index 753e6651..bf5918d2 100644
--- a/library/multithreading.cpp
+++ b/library/multithreading.cpp
@@ -1,36 +1,9 @@
#include "multithreading.h"
#include <wx/utils.h>
-#include <wx/app.h>
-#include <wx/timer.h>
-//#include "windows.h"
+//#include <wx/msw/wrapwin.h> //includes "windows.h"
//MessageBox(0, "hi", "", 0);
-void updateUiNow()
-{
- //process UI events and prevent application from "not responding" -> NO performance issue!
- wxTheApp->Yield();
-
- // while (wxTheApp->Pending())
- // wxTheApp->Dispatch();
-}
-
-
-bool updateUiIsAllowed()
-{
- static wxLongLong lastExec = 0;
-
- wxLongLong newExec = wxGetLocalTimeMillis();
-
- if (newExec - lastExec >= UI_UPDATE_INTERVAL) //perform ui updates not more often than necessary
- {
- lastExec = newExec;
- return true;
- }
- return false;
-}
-
-
/*choreography:
------------- ---------------
@@ -97,7 +70,7 @@ public:
threadHandler->readyToReceiveResult.Lock();
threadHandler->receivingResult.Signal(); // kind of a double notice that work is completed
- threadHandler->workDone = true; // workaround for wxCondition bug (wxWidgets v2.8.9, signal might geht lost)
+ threadHandler->workDone = true; // Workaround for wxWidgets: bug in wxCondition (wxWidgets v2.8.9, signal might geht lost)
threadHandler->readyToReceiveResult.Unlock();
}
bgstack15