X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4db172a3b318df9aff178eb6c5da149d56e0859..4b263e5ef358411a345dee9ffef3ba69c19be40e:/src/gtk1/threadsgi.cpp diff --git a/src/gtk1/threadsgi.cpp b/src/gtk1/threadsgi.cpp index 914ad1ef37..830c0eb1d2 100644 --- a/src/gtk1/threadsgi.cpp +++ b/src/gtk1/threadsgi.cpp @@ -4,7 +4,6 @@ // Author: Original from Wolfram Gloger/Guilhem Lavaux // Modified by: // Created: 04/22/98 -// RCS-ID: $Id$ // Copyright: (c) Wolfram Gloger (1996, 1997); Guilhem Lavaux (1998) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -16,6 +15,8 @@ #ifndef WX_PRECOMP #include "wx/log.h" + #include "wx/utils.h" + #include "wx/module.h" #endif #include @@ -24,8 +25,6 @@ #include #include #include -#include "wx/module.h" -#include "wx/utils.h" #include "gdk/gdk.h" #include "gtk/gtk.h" @@ -66,7 +65,9 @@ wxMutex::wxMutex() wxMutex::~wxMutex() { if (m_locked > 0) + { wxLogDebug( "wxMutex warning: freeing a locked mutex (%d locks)\n", m_locked ); + } delete p_internal; } @@ -124,7 +125,7 @@ void wxThreadPrivate::SprocStart(void *ptr) thr->p_internal->thread_id = getpid(); thr->p_internal->exit_status = 0; - status = thr->Entry(); + status = thr->CallEntry(); thr->Exit(status); } @@ -261,7 +262,7 @@ bool wxThreadModule::OnInit() wxThreadGuiInit(); p_mainid = (int)getpid(); wxMainMutex->Lock(); - return TRUE; + return true; } void wxThreadModule::OnExit() @@ -270,4 +271,3 @@ void wxThreadModule::OnExit() wxThreadGuiExit(); delete wxMainMutex; } -