29 #ifndef HAS_WORKING_SEMAPHORE 93 while (sem->
count == 0) {
118 while (sem->
count == 0) {
int ast_sem_destroy(struct ast_sem *sem)
Destroy a semaphore.
Asterisk main include file. File version handling, generic pbx functions.
int ast_sem_post(struct ast_sem *sem)
Increments the semaphore, unblocking a waiter if necessary.
int ast_sem_timedwait(struct ast_sem *sem, const struct timespec *abs_timeout)
Decrements the semaphore, waiting until abs_timeout.
#define AST_SEM_VALUE_MAX
#define ast_cond_wait(cond, mutex)
#define ast_cond_init(cond, attr)
#define ast_cond_signal(cond)
#define SCOPED_MUTEX(varname, lock)
scoped lock specialization for mutexes
int ast_sem_getvalue(struct ast_sem *sem, int *sval)
Gets the current value of the semaphore.
int ast_sem_wait(struct ast_sem *sem)
Decrements the semaphore.
#define ast_cond_destroy(cond)
int ast_sem_init(struct ast_sem *sem, int pshared, unsigned int value)
Initialize a semaphore.
#define ast_mutex_init(pmutex)
#define ast_mutex_destroy(a)
#define ast_cond_timedwait(cond, mutex, time)