X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5fb56c07a3718798459a69c74b3124ab58c65b5..e52cac90cda8f499169a247e7f23c985b16a70e6:/src/os2/thread.cpp?ds=sidebyside diff --git a/src/os2/thread.cpp b/src/os2/thread.cpp index a2b1004172..79040df69e 100644 --- a/src/os2/thread.cpp +++ b/src/os2/thread.cpp @@ -100,8 +100,7 @@ wxMutex::~wxMutex() if (m_locked > 0) wxLogDebug(wxT("Warning: freeing a locked mutex (%d locks)."), m_locked); ::DosCloseMutexSem(p_internal->m_vMutex); - delete p_internal; - p_internal = NULL; + p_internal->m_vMutex = NULL; } wxMutexError wxMutex::Lock() @@ -244,6 +243,14 @@ void wxCondition::Broadcast() // wxCriticalSection implementation // ---------------------------------------------------------------------------- +wxCriticalSection::wxCriticalSection() +{ +} + +wxCriticalSection::~wxCriticalSection() +{ +} + void wxCriticalSection::Enter() { ::DosEnterCritSec(); @@ -750,5 +757,10 @@ bool WXDLLEXPORT wxGuiOwnedByMainThread() return s_bGuiOwnedByMainThread; } +bool WXDLLEXPORT wxIsWaitingForThread() +{ + return s_bWaitingForThread; +} + #endif // wxUSE_THREADS