12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef SEMAPHORE_H
- #define SEMAPHORE_H
- #include "core/error_list.h"
- class Semaphore {
- protected:
- static Semaphore *(*create_func)();
- public:
- virtual Error wait() = 0;
- virtual Error post() = 0;
- virtual int get() const = 0;
- static Semaphore *create();
- virtual ~Semaphore();
- };
- #endif
|