[Previous] [Contents] [Next]

pthread_getcpuclockid()

Return the clock ID of the CPU-time clock from a specified thread

Synopsis:

#include <sys/types.h>
#include <time.h>
#include <pthread.h>

extern int pthread_getcpuclockid( 
                         pthread_t id,
                         clockid_t* clock_id);

Library:

libc

Description:

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.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

ESRCH
The value specified by id doesn't refer to an existing thread.

Classification:

POSIX 1003.1d (draft)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

clock_getcpuclockid(), clock_getres(), clock_gettime(), Clockid(), clock_settime(), pthread_getcpuclockid(), timer_create()


[Previous] [Contents] [Next]