Changeset 203 in flair-src for trunk/lib/FlairCore/src/Semaphore_impl.cpp
- Timestamp:
- Nov 9, 2017, 2:00:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/Semaphore_impl.cpp
r133 r203 53 53 } 54 54 55 bool Semaphore_impl::TryGetSemaphore() { 56 #ifdef __XENO__ 57 return !rt_sem_p(&semaphore, TM_NONBLOCK); 58 #else 59 return !sem_trywait(&semaphore); 60 #endif 61 } 62 55 63 bool Semaphore_impl::GetSemaphore(Time timeout) { 56 64 int status; … … 75 83 if (status != 0) { 76 84 if (errno == ETIMEDOUT) { 77 self->Warn("warning : semaphore timedout\n"); 85 #ifdef DEBUG 86 self->Warn("warning : semaphore timedout\n"); 87 #endif 78 88 } else { 79 89 char errorMsg[256];
Note:
See TracChangeset
for help on using the changeset viewer.