X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c78e7c70271608b076b1dbed201b1204e6898d4..ea39b210333fcc24a74b4601058fc1a79b1ecfec:/src/qt/threadno.cpp?ds=sidebyside diff --git a/src/qt/threadno.cpp b/src/qt/threadno.cpp index 2cdfcd3a37..8cf94d1e06 100644 --- a/src/qt/threadno.cpp +++ b/src/qt/threadno.cpp @@ -89,7 +89,17 @@ wxThreadError wxThread::Create() wxThreadError wxThread::Destroy() { - return THREAD_RUNNING; + return THREAD_NOT_RUNNING; +} + +wxThreadError wxThread::Pause() +{ + return THREAD_NOT_RUNNING; +} + +wxThreadError wxThread::Resume() +{ + return THREAD_NOT_RUNNING; } void wxThread::DeferDestroy( bool WXUNUSED(on) ) @@ -110,11 +120,21 @@ unsigned long wxThread::GetID() const return 0; } +wxThread *wxThread::GetThreadFromID(unsigned long WXUNUSED(id)) const +{ + return NULL; +} + bool wxThread::IsMain() { return TRUE; } +bool wxThread::IsRunning() const +{ + return FALSE; +} + bool wxThread::IsAlive() const { return FALSE; @@ -123,7 +143,7 @@ bool wxThread::IsAlive() const void wxThread::SetPriority(int WXUNUSED(prio)) { } int wxThread::GetPriority() const { return 0; } -wxMutex wxMainMutex; // controls access to all GUI functions +wxMutex *wxMainMutex; // controls access to all GUI functions wxThread::wxThread() { @@ -153,13 +173,15 @@ public: }; bool wxThreadModule::OnInit() { - wxMainMutex.Lock(); + wxMainMutex = new wxMutex(); + wxMainMutex->Lock(); return TRUE; } void wxThreadModule::OnExit() { - wxMainMutex.Unlock(); + wxMainMutex->Unlock(); + delete wxMainMutex; } IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)