10#ifndef CARDSIGHT_SEMAPHORE_H
11#define CARDSIGHT_SEMAPHORE_H
int down_timeout(struct semaphore *sem, int timeout_ms)
Take one count from a semaphore.
void up(struct semaphore *sem)
Add one count to a semaphore.
void sema_init_limit(struct semaphore *sem, uint32_t initial, uint32_t limit)
Initialize a counting semaphore.
A counting semaphore.
Definition semaphore.h:16
void * handle
Definition semaphore.h:17