X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4db172a3b318df9aff178eb6c5da149d56e0859..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/gtk1/threadsgi.cpp diff --git a/src/gtk1/threadsgi.cpp b/src/gtk1/threadsgi.cpp index 914ad1ef37..6ba3e7255c 100644 --- a/src/gtk1/threadsgi.cpp +++ b/src/gtk1/threadsgi.cpp @@ -16,6 +16,8 @@ #ifndef WX_PRECOMP #include "wx/log.h" + #include "wx/utils.h" + #include "wx/module.h" #endif #include @@ -24,8 +26,6 @@ #include #include #include -#include "wx/module.h" -#include "wx/utils.h" #include "gdk/gdk.h" #include "gtk/gtk.h" @@ -66,7 +66,9 @@ wxMutex::wxMutex() wxMutex::~wxMutex() { if (m_locked > 0) + { wxLogDebug( "wxMutex warning: freeing a locked mutex (%d locks)\n", m_locked ); + } delete p_internal; } @@ -261,7 +263,7 @@ bool wxThreadModule::OnInit() wxThreadGuiInit(); p_mainid = (int)getpid(); wxMainMutex->Lock(); - return TRUE; + return true; } void wxThreadModule::OnExit() @@ -270,4 +272,3 @@ void wxThreadModule::OnExit() wxThreadGuiExit(); delete wxMainMutex; } -