]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/threadno.cpp
OnExit() is called for modules which were initialized even if the init of
[wxWidgets.git] / src / gtk / threadno.cpp
index 482ab6b49648dc011936ae93097131ffbeedd9b9..72994404561dc15534cf8ad07fd9fe1d8f0e882a 100644 (file)
@@ -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()
 {