]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/thread.cpp
Committing in .
[wxWidgets.git] / src / os2 / thread.cpp
index a26fbf6e4ba7a6ce73b2b4ec06bb096a7739e837..79040df69e4c30117a05d7c3bc9f9152bb92777a 100644 (file)
@@ -239,6 +239,28 @@ void wxCondition::Broadcast()
     }
 }
 
+// ----------------------------------------------------------------------------
+// wxCriticalSection implementation
+// ----------------------------------------------------------------------------
+
+wxCriticalSection::wxCriticalSection()
+{
+}
+
+wxCriticalSection::~wxCriticalSection()
+{
+}
+
+void wxCriticalSection::Enter()
+{
+    ::DosEnterCritSec();
+}
+
+void wxCriticalSection::Leave()
+{
+    ::DosExitCritSec();
+}
+
 // ----------------------------------------------------------------------------
 // wxThread implementation
 // ----------------------------------------------------------------------------