AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
pthreadsextra.h File Reference

Declares extra symbols to make the Mac threads implementation look more like Unix. More...

#include <pthread.h>
#include <sys/types.h>
Include dependency graph for pthreadsextra.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLOCK_REALTIME   0
 
#define CLOCK_MONOTONIC   1
 
#define CLOCK_PROCESS_CPUTIME_ID   2
 
#define CLOCK_THREAD_CPUTIME_ID   3
 
#define CLOCK_MONOTONIC_RAW   4
 
#define CLOCK_REALTIME_COARSE   5
 
#define CLOCK_MONOTONIC_COARSE   6
 

Typedefs

typedef int clockid_t
 

Functions

int clock_gettime (clockid_t clk_id, struct timespec *tp)
 
int pthread_mutex_timedlock (pthread_mutex_t *__restrict mutex, const struct timespec *__restrict abs_timeout)
 
pid_t gettid (void)
 

Detailed Description

Declares extra symbols to make the Mac threads implementation look more like Unix.

Definition in file pthreadsextra.h.

Macro Definition Documentation

◆ CLOCK_MONOTONIC

#define CLOCK_MONOTONIC   1

Definition at line 23 of file pthreadsextra.h.

◆ CLOCK_MONOTONIC_COARSE

#define CLOCK_MONOTONIC_COARSE   6

Definition at line 33 of file pthreadsextra.h.

◆ CLOCK_MONOTONIC_RAW

#define CLOCK_MONOTONIC_RAW   4

Definition at line 29 of file pthreadsextra.h.

◆ CLOCK_PROCESS_CPUTIME_ID

#define CLOCK_PROCESS_CPUTIME_ID   2

Definition at line 25 of file pthreadsextra.h.

◆ CLOCK_REALTIME

#define CLOCK_REALTIME   0

Definition at line 21 of file pthreadsextra.h.

◆ CLOCK_REALTIME_COARSE

#define CLOCK_REALTIME_COARSE   5

Definition at line 31 of file pthreadsextra.h.

◆ CLOCK_THREAD_CPUTIME_ID

#define CLOCK_THREAD_CPUTIME_ID   3

Definition at line 27 of file pthreadsextra.h.

Typedef Documentation

◆ clockid_t

typedef int clockid_t

Definition at line 18 of file pthreadsextra.h.

Function Documentation

◆ clock_gettime()

int clock_gettime ( clockid_t  clk_id,
struct timespec *  tp 
)

Definition at line 12 of file pthreadsextra.cpp.

◆ gettid()

pid_t gettid ( void  )

Definition at line 73 of file pthreadsextra.cpp.

◆ pthread_mutex_timedlock()

int pthread_mutex_timedlock ( pthread_mutex_t *__restrict  mutex,
const struct timespec *__restrict  abs_timeout 
)

Definition at line 43 of file pthreadsextra.cpp.