#include <pthread.h>
Go to the source code of this file.
◆ CTHR_MUTEX_INIT
| #define CTHR_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER |
◆ CTHR_MUTEX_LOCK
| #define CTHR_MUTEX_LOCK |
( |
|
x | ) |
pthread_mutex_lock(&x) |
◆ CTHR_MUTEX_TYPE
| #define CTHR_MUTEX_TYPE pthread_mutex_t |
◆ CTHR_MUTEX_UNLOCK
| #define CTHR_MUTEX_UNLOCK |
( |
|
x | ) |
pthread_mutex_unlock(&x) |
◆ CTHR_THREAD_CREATE
| #define CTHR_THREAD_CREATE |
( |
|
thr, |
|
|
|
func, |
|
|
|
arg |
|
) |
| pthread_create(&thr, NULL, func, arg) |
◆ CTHR_THREAD_JOIN
| #define CTHR_THREAD_JOIN |
( |
|
thr | ) |
pthread_join(thr, NULL) |
◆ CTHR_THREAD_RETURN
| #define CTHR_THREAD_RETURN return NULL |
◆ CTHR_THREAD_RTYPE
| #define CTHR_THREAD_RTYPE void * |
◆ CTHR_THREAD_TYPE
| #define CTHR_THREAD_TYPE pthread_t |