]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/thread.cpp
Added (untested) support for sub-locales.
[wxWidgets.git] / src / motif / thread.cpp
index f5e0d88bfb526e2164163201013bc9333ca91392..96d7af417a3904bcd5958de6dc7be953ec9a08f8 100644 (file)
@@ -414,30 +414,34 @@ void wxThread::OnExit()
 // wxThreadModule 
 //--------------------------------------------------------------------
 
-class wxThreadModule : public wxModule 
+class wxThreadModule : public wxModule
 {
-  DECLARE_DYNAMIC_CLASS(wxThreadModule)
-  
 public:
-  virtual bool OnInit() 
-    {
-        wxMainMutex = new wxMutex();
-        wxThreadGuiInit();
-        p_mainid = pthread_self();
-       wxMainMutex->Lock();
-
-       return TRUE;
-    }
+    virtual bool OnInit();
+    virtual void OnExit();
 
-  virtual void OnExit() 
-  {
-      wxMainMutex->Unlock();
-      wxThreadGuiExit();
-      delete wxMainMutex;
-  }
+private:
+    DECLARE_DYNAMIC_CLASS(wxThreadModule)
 };
 
 IMPLEMENT_DYNAMIC_CLASS(wxThreadModule, wxModule)
 
+bool wxThreadModule::OnInit() 
+{
+    wxMainMutex = new wxMutex();
+    wxThreadGuiInit();
+    p_mainid = pthread_self();
+    wxMainMutex->Lock();
+
+    return TRUE;
+}
+
+void wxThreadModule::OnExit()
+{
+    wxMainMutex->Unlock();
+    wxThreadGuiExit();
+    delete wxMainMutex;
+};
+
 #endif
   // wxUSE_THREADS