Return the clock ID of the CPU-time clock from a specified thread
#include <sys/types.h> #include <time.h> #include <pthread.h> extern int pthread_getcpuclockid( pthread_t id, clockid_t* clock_id);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_getcpuclockid() function returns the clock ID of the CPU-time clock of the thread specified by id, if the thread specified by id exists.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
clock_getcpuclockid(), clock_getres(), clock_gettime(), ClockId(), clock_settime(), pthread_getcpuclockid(), timer_create()
Clocks, Timers, and Getting a Kick Every So Often chapter of Getting Started with QNX Neutrino