X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee4f8c2af9c6c5458e488db10aef7d00a89ace25..7b3a00878c4bde34d64c3af800bea089760f9bd5:/src/msw/thread.cpp diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 86bbcfea6f..4cd91e87c0 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -61,6 +61,8 @@ wxMutex::wxMutex() wxMutex::~wxMutex() { + if (m_locked > 0) + wxDebugMsg("wxMutex warning: freeing a locked mutex (%d locks)\n", m_locked); CloseHandle(p_internal->p_mutex); } @@ -231,7 +233,7 @@ void wxThread::SetPriority(int prio) p_internal->prio = prio; } -int wxThread::GetPriority() +int wxThread::GetPriority() const { return p_internal->prio; } @@ -273,7 +275,7 @@ unsigned long wxThread::GetID() const return (unsigned long)p_internal->tid; } -bool wxThread::IsMain() const +bool wxThread::IsMain() { return (GetCurrentThread() == p_mainid); }