X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71a660a3128c6c2a9262225136907e57dab33183..63e7198ba8304880bc279e0e99f1ed7b49e35d96:/src/mac/thread.cpp diff --git a/src/mac/thread.cpp b/src/mac/thread.cpp index 8c64c8818a..8c6e856cc6 100644 --- a/src/mac/thread.cpp +++ b/src/mac/thread.cpp @@ -37,10 +37,12 @@ #ifdef __WXMAC__ #include #include "wx/mac/uma.h" +#include "wx/mac/macnotfy.h" #endif #define INFINITE 0xFFFFFFFF + // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -257,12 +259,12 @@ public: } bool IsOk() const { return m_mutex.IsOk() ; } - + wxCondError Wait() { return WaitTimeout(0xFFFFFFFF ); } - + wxCondError WaitTimeout(unsigned long msectimeout) { wxMacStCritical critical ; @@ -300,7 +302,7 @@ public: { wxMacStCritical critical ; return wxCOND_NO_ERROR; - } + } wxArrayLong m_waiters ; wxInt32 m_excessSignals ; @@ -844,7 +846,7 @@ bool wxThreadModule::OnInit() #endif if ( !hasThreadManager ) { - wxMessageBox( wxT("Error") , wxT("Thread Support is not available on this System") , wxOK ) ; + wxLogSysError( wxT("Thread Support is not available on this System") ); return FALSE ; }