PortAudio
2.0
|
#include <time.h>
#include <sys/types.h>
#include <sys/time.h>
#include <pthread.h>
Go to the source code of this file.
Macros | |
#define | PAUTIL_USE_POSIX_ADVANCED_REALTIME 0 |
#define | PaUtilClockId int /* dummy type */ |
Functions | |
PaUtilClockId | PaPthreadUtil_NegotiateCondAttrClock (pthread_condattr_t *cattr) |
int | PaPthreadUtil_GetTime (PaUtilClockId clockId, struct timespec *ts) |
#define PAUTIL_USE_POSIX_ADVANCED_REALTIME 0 |
#define PaUtilClockId int /* dummy type */ |
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().