X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5f885c034054a940ee27b5dc6efeb5c94d06a6f..aae24d21a33faa2a23fccde24255365ca845c46f:/src/gtk/threadno.cpp?ds=inline diff --git a/src/gtk/threadno.cpp b/src/gtk/threadno.cpp index 482ab6b496..7299440456 100644 --- a/src/gtk/threadno.cpp +++ b/src/gtk/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() {