Salome HOME
PR: first version from Antony GEAY, with directory restructuration
[modules/yacs.git] / src / bases / Semaphore.hxx
diff --git a/src/bases/Semaphore.hxx b/src/bases/Semaphore.hxx
new file mode 100644 (file)
index 0000000..68dc9b6
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef __SEMAPHORE_HXX__
+#define __SEMAPHORE_HXX__
+
+/* Interface is :
+   class Semaphore
+    {
+    public:
+      Semaphore(int initValue=0);
+      ~Semaphore();
+      void post();
+      void wait();
+      int getvalue();
+    };
+ */
+
+#if defined(YACS_PTHREAD)
+#include "SemaphorePT.hxx"
+
+namespace YACS
+{
+  namespace BASES
+  {
+    typedef SemaphorePT Semaphore;
+  }
+}
+#else
+#error
+#endif
+
+#endif