123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef SEM_OSX_H
- #define SEM_OSX_H
- struct cgsem {
- int pipefd[2];
- };
- typedef struct cgsem cgsem_t;
- #include "core/os/semaphore.h"
- class SemaphoreOSX : public Semaphore {
- mutable cgsem_t sem;
- static Semaphore *create_semaphore_osx();
- public:
- virtual Error wait();
- virtual Error post();
- virtual int get() const;
- static void make_default();
- SemaphoreOSX();
- ~SemaphoreOSX();
- };
- #endif
|