Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_getcpuclockid.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_getcpuclockid.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_getcpuclockid.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_getcpuclockid.html on line 8
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);
- thread
- The ID of the thread that you want to get the clock ID for, which you
can get when you call
pthread_create()
or
pthread_self().
- clock_id
- A pointer to a clockid_t object where the function can
store the 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.
- 0
- Success.
- -1
- An error occurred (errno is set).
- ESRCH
- The value specified by id doesn't refer to an existing thread.
POSIX 1003.1 THR TCT
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()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_getcpuclockid.html on line 147
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pthread_getcpuclockid.html on line 147