]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/thread.cpp
Committing in .
[wxWidgets.git] / src / os2 / thread.cpp
index 80eef6b2e2dc60e88844396744aec0a1a6347f8e..79040df69e4c30117a05d7c3bc9f9152bb92777a 100644 (file)
@@ -243,32 +243,12 @@ void wxCondition::Broadcast()
 // wxCriticalSection implementation
 // ----------------------------------------------------------------------------
 
-class wxCriticalSectionInternal
-{
-public:
-    // init the critical section object
-    wxCriticalSectionInternal()
-        { }
-
-    // free the associated ressources
-    ~wxCriticalSectionInternal()
-        { }
-
-private:
-};
-
-// ----------------------------------------------------------------------------
-// wxCriticalSection implementation
-// ----------------------------------------------------------------------------
-
 wxCriticalSection::wxCriticalSection()
 {
-    m_critsect = new wxCriticalSectionInternal;
 }
 
 wxCriticalSection::~wxCriticalSection()
 {
-    delete m_critsect;
 }
 
 void wxCriticalSection::Enter()
@@ -777,5 +757,10 @@ bool WXDLLEXPORT wxGuiOwnedByMainThread()
     return s_bGuiOwnedByMainThread;
 }
 
+bool WXDLLEXPORT wxIsWaitingForThread()
+{
+    return s_bWaitingForThread;
+}
+
 #endif
   // wxUSE_THREADS