Changeset 238 in flair-src for trunk/lib/FlairCore/src/unexported
- Timestamp:
- May 15, 2018, 4:41:02 PM (7 years ago)
- Location:
- trunk/lib/FlairCore/src/unexported
- Files:
-
- 2 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 -
trunk/lib/FlairCore/src/unexported/SharedMem_impl.h
r203 r238 44 44 size_t size; 45 45 char *mem_segment; 46 flair::core::Semaphore sem,sem_producer,sem_consumer; 46 flair::core::Semaphore *sem; //for mutex type shared memory 47 flair::core::Semaphore *sem_producer,*sem_consumer; //sem_[produc|consum]er meaning = is [produc|consum]er ready? 47 48 #ifdef __XENO__ 48 49 RT_HEAP heap;
Note:
See TracChangeset
for help on using the changeset viewer.