23 #ifndef OSIP_MONOTHREAD
struct osip_sem * osip_sem_init(unsigned int value)
Allocate and Initialise a semaphore.
Structure for referencing a thread.
int osip_mutex_lock(struct osip_mutex *mut)
Lock the mutex.
int osip_sem_trywait(struct osip_sem *sem)
Wait operation on a semaphore.
int osip_sem_destroy(struct osip_sem *sem)
Destroy a semaphore.
int osip_thread_join(struct osip_thread *thread)
Join a thread.
void osip_mutex_destroy(struct osip_mutex *mut)
Destroy the mutex.
int osip_mutex_unlock(struct osip_mutex *mut)
Unlock the mutex.
void osip_thread_exit(void)
Exit from a thread.
struct osip_mutex * osip_mutex_init(void)
Allocate and Initialise a mutex.
int osip_sem_post(struct osip_sem *sem)
Post operation on a semaphore.
int osip_thread_set_priority(struct osip_thread *thread, int priority)
Set the priority of a thread.
Structure for referencing a semaphore element.
struct osip_thread * osip_thread_create(int stacksize, void *(*func)(void *), void *arg)
Allocate (or initialise if a thread address is given)
Structure for referencing a mutex element.
int osip_sem_wait(struct osip_sem *sem)
Wait operation on a semaphore.