XWC app semaphore Utilities. More...
Go to the source code of this file.
Macros | |
#define | XWC_SEM_WAIT_TS_RETVOID(ts, sec, nsec) |
Add the wait time to a timespec for a sem_timedwait call, with no value returned on error. More... | |
#define | XWC_SEM_WAIT_TS(ts, sec, nsec) |
Add the wait time to a timespec for a sem_timedwait call, with -1 returned on error. More... | |
#define | XWC_SEM_TIMEDWAIT_LOOP(sem, ts) |
Perform a sem_timedwait in the context of a standard loop in MagAO-X code. More... | |
#define | XWC_SEM_FLUSH(sem) |
XWC app semaphore Utilities.
Definition in file semUtils.hpp.
#define XWC_SEM_FLUSH | ( | sem | ) |
Definition at line 66 of file semUtils.hpp.
#define XWC_SEM_TIMEDWAIT_LOOP | ( | sem, | |
ts | |||
) |
Perform a sem_timedwait in the context of a standard loop in MagAO-X code.
sem | the semaphore |
ts | the timespec with the time to wait until |
Definition at line 53 of file semUtils.hpp.
#define XWC_SEM_WAIT_TS | ( | 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 38 of file semUtils.hpp.
#define XWC_SEM_WAIT_TS_RETVOID | ( | ts, | |
sec, | |||
nsec | |||
) |
Add the wait time to a timespec for a sem_timedwait call, with no value 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 20 of file semUtils.hpp.