X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5f885c034054a940ee27b5dc6efeb5c94d06a6f..24178e4a14a3d10e5f389ce7d8eb35f6636df001:/src/gtk1/threadno.cpp?ds=inline diff --git a/src/gtk1/threadno.cpp b/src/gtk1/threadno.cpp index 482ab6b496..7299440456 100644 --- a/src/gtk1/threadno.cpp +++ b/src/gtk1/threadno.cpp @@ -160,15 +160,10 @@ void wxThread::OnExit() } -// Automatic initialization -class wxThreadModule : public wxModule { - DECLARE_DYNAMIC_CLASS(wxThreadModule) -public: - bool OnInit(); - void OnExit(); -}; +IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule) -bool wxThreadModule::OnInit() { +bool wxThreadModule::OnInit() +{ wxMainMutex = new wxMutex(); wxMainMutex->Lock(); return TRUE; @@ -180,7 +175,7 @@ void wxThreadModule::OnExit() delete wxMainMutex; } -IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule) + void wxMutexGuiEnter() {