PortAudio
2.0
|
Functions | |
PaUtilClockId | PaPthreadUtil_NegotiateCondAttrClock (pthread_condattr_t *cattr) |
int | PaPthreadUtil_GetTime (PaUtilClockId clockId, struct timespec *ts) |
int PaPthreadUtil_GetTime | ( | PaUtilClockId | clockId, |
struct timespec * | ts | ||
) |
Get the current time according to the clock referred to by clockId, as previously returned by PaPthreadUtil_NegotiateCondAttrTimeoutClock().
Returns 0 upon success, -1 otherwise.
References PA_DEBUG.
Referenced by PaUnixThread_New().
PaUtilClockId PaPthreadUtil_NegotiateCondAttrClock | ( | pthread_condattr_t * | cattr | ) |
Negotiate the most suitable clock for condvar timeouts, set the clock on cattr and return the clock's id.
References PA_DEBUG.
Referenced by PaJack_Initialize(), and PaUnixThread_New().