Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   pthread_getcpuclockid.3p    ( 3 )

часы времени (РАСШИРЕННЫЕ НИТИ РЕАЛЬНОГО ВРЕМЕНИ) (time clock (ADVANCED REALTIME THREADS))

Пролог (Prolog)

This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.


Имя (Name)

pthread_getcpuclockid — access a thread CPU-time clock (ADVANCED REALTIME THREADS)


Синопсис (Synopsis)

#include <pthread.h> #include <time.h>

int pthread_getcpuclockid(pthread_t thread_id, clockid_t *clock_id);


Описание (Description)

The pthread_getcpuclockid() function shall return in clock_id the clock ID of the CPU-time clock of the thread specified by thread_id, if the thread specified by thread_id exists.


Возвращаемое значение (Return value)

Upon successful completion, pthread_getcpuclockid() shall return zero; otherwise, an error number shall be returned to indicate the error.


Ошибки (Error)

No errors are defined.

The following sections are informative.


Примеры (Examples)

None.

Использование в приложениях (Application usage)

The pthread_getcpuclockid() function is part of the Thread CPU- Time Clocks option and need not be provided on all implementations.


Обоснование (Rationale)

If an implementation detects use of a thread ID after the end of its lifetime, it is recommended that the function should fail and report an [ESRCH] error.


Будущие направления (Future directions)

None.


Смотри также (See also)

clock_getcpuclockid(3p), clock_getres(3p), timer_create(3p)

The Base Definitions volume of POSIX.1‐2017, pthread.h(0p), time.h(0p)