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()
// wxCriticalSection implementation
// ----------------------------------------------------------------------------
+wxCriticalSection::wxCriticalSection()
+{
+}
+
+wxCriticalSection::~wxCriticalSection()
+{
+}
+
void wxCriticalSection::Enter()
{
::DosEnterCritSec();
return s_bGuiOwnedByMainThread;
}
+bool WXDLLEXPORT wxIsWaitingForThread()
+{
+ return s_bWaitingForThread;
+}
+
#endif
// wxUSE_THREADS