123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef SEMAPHORE_WINDOWS_H
- #define SEMAPHORE_WINDOWS_H
- #include "core/os/semaphore.h"
- #ifdef WINDOWS_ENABLED
- #include <windows.h>
- class SemaphoreWindows : public Semaphore {
- mutable HANDLE semaphore;
- static Semaphore *create_semaphore_windows();
- public:
- virtual Error wait();
- virtual Error post();
- virtual int get() const;
- static void make_default();
- SemaphoreWindows();
- ~SemaphoreWindows();
- };
- #endif
- #endif
|