Changeset 203 in flair-src for trunk/lib/FlairCore/src/unexported/SharedMem_impl.h
- Timestamp:
- Nov 9, 2017, 2:00:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/unexported/SharedMem_impl.h
r149 r203 18 18 #ifdef __XENO__ 19 19 #include <native/heap.h> 20 #include <native/mutex.h>21 #else22 #include <semaphore.h>23 20 #endif 21 22 #include <Semaphore.h> 24 23 25 24 #include <SharedMem.h> … … 37 36 38 37 void Write(const char *buf, size_t size); 39 void Read(char *buf, size_t size);38 bool Read(char *buf, size_t size, flair::core::Time nsTimeout); 40 39 void ReaderReady(); 41 40 … … 45 44 size_t size; 46 45 char *mem_segment; 46 flair::core::Semaphore sem,sem_producer,sem_consumer; 47 47 #ifdef __XENO__ 48 48 RT_HEAP heap; 49 RT_MUTEX mutex;50 49 bool heap_binded; 51 bool mutex_binded;52 50 #else 53 51 int fd; 54 sem_t *sem,*sem_producer,*sem_consumer; 55 std::string sem_name, shm_name; 56 std::string sem_name_producer,sem_name_consumer; 52 std::string shm_name; 57 53 #endif 58 54 };
Note:
See TracChangeset
for help on using the changeset viewer.