#include <pthread.h>
Go to the source code of this file.
◆ CTHR_RWLOCK_INIT
| #define CTHR_RWLOCK_INIT PTHREAD_RWLOCK_INITIALIZER |
◆ CTHR_RWLOCK_LOCK_READ
| #define CTHR_RWLOCK_LOCK_READ |
( |
| x | ) |
|
Value:pthread_rwlock_rdlock(&x)
◆ CTHR_RWLOCK_LOCK_WRITE
| #define CTHR_RWLOCK_LOCK_WRITE |
( |
| x | ) |
|
Value:pthread_rwlock_wrlock(&x)
◆ CTHR_RWLOCK_TRYLOCK_READ
| #define CTHR_RWLOCK_TRYLOCK_READ |
( |
| x | ) |
|
Value:(pthread_rwlock_tryrdlock(&x) == 0)
◆ CTHR_RWLOCK_TYPE
| #define CTHR_RWLOCK_TYPE pthread_rwlock_t |
◆ CTHR_RWLOCK_UNLOCK_READ
| #define CTHR_RWLOCK_UNLOCK_READ |
( |
| x | ) |
|
Value:pthread_rwlock_unlock(&x)
◆ CTHR_RWLOCK_UNLOCK_WRITE
| #define CTHR_RWLOCK_UNLOCK_WRITE |
( |
| x | ) |
|
Value:pthread_rwlock_unlock(&x)
◆ CTHR_THREAD_CLOSE
| #define CTHR_THREAD_CLOSE |
( |
| thr | ) |
|
◆ CTHR_THREAD_CREATE
| #define CTHR_THREAD_CREATE |
( |
| thr, |
|
|
| func, |
|
|
| arg ) |
Value:(pthread_create(&thr, NULL, func, arg) == 0)
◆ CTHR_THREAD_JOIN
| #define CTHR_THREAD_JOIN |
( |
| thr | ) |
|
◆ 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 |