AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
pthreadsextra.cpp File Reference

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

#include "pthreadsextra.h"
#include <sys/time.h>
#include "ajabase/system/mac/threadimpl.h"
Include dependency graph for pthreadsextra.cpp:

Go to the source code of this file.

Functions

int clock_gettime (clockid_t clk_id, struct timespec *tp)
 
static bool times_up (const struct timespec *timeout)
 
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.cpp.

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.

◆ times_up()

static bool times_up ( const struct timespec *  timeout)
static

Definition at line 25 of file pthreadsextra.cpp.