< prev index next >

src/os/posix/vm/os_posix.hpp

Print this page

        

@@ -87,6 +87,14 @@
 private:
   void restore();
   sigjmp_buf _jmpbuf;
 };
 
+class PosixSemaphore : public Semaphore {
+ public:
+  PosixSemaphore(uint value = 0) : Semaphore(value) {}
+
+  bool trywait();
+  bool timedwait(struct timespec ts);
+};
+
 #endif // OS_POSIX_VM_OS_POSIX_HPP
< prev index next >