#include <dispatch/dispatch.h>
#include <errno.h>
Go to the source code of this file.
◆ sem_t
#define sem_t dispatch_semaphore_t |
◆ sem_post
#define sem_post |
( |
|
psem | ) |
dispatch_semaphore_signal(*psem) |
◆ sem_wait
#define sem_wait |
( |
|
psem | ) |
dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER) |
◆ sem_timedwait
#define sem_timedwait |
( |
|
psem, |
|
|
|
val |
|
) |
| dispatch_semaphore_wait(*psem, dispatch_walltime(val, 0)) |
◆ sem_destroy
#define sem_destroy |
( |
|
psem | ) |
dispatch_release(*psem) |
◆ sem_init
◆ compat_sem_init()
static int compat_sem_init |
( |
dispatch_semaphore_t * |
psem, |
|
|
int |
unused, |
|
|
int |
val |
|
) |
| |
|
inlinestatic |