PortAudio  2.0
Functions
pa_pthread_util.c File Reference
#include <errno.h>
#include "pa_pthread_util.h"
#include "pa_debugprint.h"

Functions

PaUtilClockId PaPthreadUtil_NegotiateCondAttrClock (pthread_condattr_t *cattr)
 
int PaPthreadUtil_GetTime (PaUtilClockId clockId, struct timespec *ts)
 

Function Documentation

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().