Changeset 238 in flair-src for trunk/lib/FlairCore/src/unexported/Semaphore_impl.h
- Timestamp:
- May 15, 2018, 4:41:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/unexported/Semaphore_impl.h
r203 r238 17 17 #include <native/sem.h> 18 18 #else 19 #include <fcntl.h> 19 20 #include <semaphore.h> 20 21 #endif … … 29 30 class Semaphore_impl { 30 31 public: 31 Semaphore_impl(flair::core::Semaphore *self, uint32_t initialValue);32 Semaphore_impl(flair::core::Semaphore *self, std::string name, uint32_t initialValue, flair::core::Semaphore::Type &type); 32 33 ~Semaphore_impl(); 33 34 bool TryGetSemaphore(); … … 37 38 RT_SEM semaphore; 38 39 #else 39 sem_t semaphore; 40 std::string sem_name; 41 sem_t *semaphore; 40 42 #endif 41 43 42 44 private: 43 45 flair::core::Semaphore *self; 46 flair::core::Semaphore::Type type; 44 47 }; 45 48
Note:
See TracChangeset
for help on using the changeset viewer.