XWC app semaphore Utilities to use CRTP derived classes. More...

Go to the source code of this file.
Macros | |
| #define | XWC_SEM_WAIT_TS_RETVOID_DERIVED(ts, sec, nsec) |
| Add the wait time to a timespec for a sem_timedwait call, with no value returned on error, using the derived class. | |
| #define | XWC_SEM_WAIT_TS_DERIVED(ts, sec, nsec) |
| Add the wait time to a timespec for a sem_timedwait call, with -1 returned on error. | |
| #define | XWC_SEM_TIMEDWAIT_LOOP_DERIVED(sem, ts) |
| Perform a sem_timedwait in the context of a standard loop in MagAO-X code using the derived class. | |
| #define | XWC_SEM_FLUSH_DERIVED(sem) |
XWC app semaphore Utilities to use CRTP derived classes.
Definition in file semUtilsDerived.hpp.
| #define XWC_SEM_FLUSH_DERIVED | ( | sem | ) |
Definition at line 65 of file semUtilsDerived.hpp.
| #define XWC_SEM_TIMEDWAIT_LOOP_DERIVED | ( | sem, | |
| ts | |||
| ) |
Perform a sem_timedwait in the context of a standard loop in MagAO-X code using the derived class.
| sem | the semaphore |
| ts | the timespec with the time to wait until |
Definition at line 52 of file semUtilsDerived.hpp.
| #define XWC_SEM_WAIT_TS_DERIVED | ( | ts, | |
| sec, | |||
| nsec | |||
| ) |
Add the wait time to a timespec for a sem_timedwait call, with -1 returned on error.
An error would be generated by clock_gettime
| ts | is the timespec to modify, should be set to current time |
| sec | is the number of seconds to add to ts |
| nsec | is the number of nanoseconds to add to ts |
Definition at line 37 of file semUtilsDerived.hpp.
| #define XWC_SEM_WAIT_TS_RETVOID_DERIVED | ( | ts, | |
| sec, | |||
| nsec | |||
| ) |
Add the wait time to a timespec for a sem_timedwait call, with no value returned on error, using the derived class.
An error would be generated by clock_gettime.
| ts | is the timespec to modify, should be set to current time |
| sec | is the number of seconds to add to ts |
| nsec | is the number of nanoseconds to add to ts |
Definition at line 20 of file semUtilsDerived.hpp.