AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
pthreadsextra.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MIT */
8
#ifndef AJA_PTREAD_EXTRA_H
9
#define AJA_PTREAD_EXTRA_H
10
11
#include <pthread.h>
12
#include <sys/types.h>
13
14
// defined in later XCode header
15
16
#ifndef CLOCK_REALTIME
17
18
typedef
int
clockid_t
;
19
20
/* Identifier for system-wide realtime clock. */
21
# define CLOCK_REALTIME 0
22
/* Monotonic system-wide clock. */
23
# define CLOCK_MONOTONIC 1
24
/* High-resolution timer from the CPU. */
25
# define CLOCK_PROCESS_CPUTIME_ID 2
26
/* Thread-specific CPU-time clock. */
27
# define CLOCK_THREAD_CPUTIME_ID 3
28
/* Monotonic system-wide clock, not adjusted for frequency scaling. */
29
# define CLOCK_MONOTONIC_RAW 4
30
/* Identifier for system-wide realtime clock, updated only on ticks. */
31
# define CLOCK_REALTIME_COARSE 5
32
/* Monotonic system-wide clock, updated only on ticks. */
33
# define CLOCK_MONOTONIC_COARSE 6
34
35
#endif
36
37
//ignore the clockid_t in this implementation
38
int
clock_gettime
(
clockid_t
clk_id,
struct
timespec *tp);
39
int
pthread_mutex_timedlock
(pthread_mutex_t *__restrict mutex,
const
struct
timespec *__restrict abs_timeout);
40
pid_t
gettid
(
void
);
41
42
#endif // AJA_PTREAD_EXTRA_H
pthread_mutex_timedlock
int pthread_mutex_timedlock(pthread_mutex_t *__restrict mutex, const struct timespec *__restrict abs_timeout)
Definition:
pthreadsextra.cpp:43
clock_gettime
int clock_gettime(clockid_t clk_id, struct timespec *tp)
Definition:
pthreadsextra.cpp:12
gettid
pid_t gettid(void)
Definition:
pthreadsextra.cpp:73
clockid_t
int clockid_t
Definition:
pthreadsextra.h:18
libajantv2
ajabase
system
mac
pthreadsextra.h
Generated on Tue Dec 3 2024 10:25:59 for AJA NTV2 SDK by
1.8.17