SIP Witch 1.9.15
|
oSIP Thread, Mutex and Semaphore definitions More...
#include <stdio.h>
Go to the source code of this file.
Functions | |
struct osip_thread * | osip_thread_create (int stacksize, void *(*func)(void *), void *arg) |
Allocate (or initialise if a thread address is given) More... | |
int | osip_thread_join (struct osip_thread *thread) |
Join a thread. More... | |
int | osip_thread_set_priority (struct osip_thread *thread, int priority) |
Set the priority of a thread. More... | |
void | osip_thread_exit (void) |
Exit from a thread. More... | |
struct osip_sem * | osip_sem_init (unsigned int value) |
Allocate and Initialise a semaphore. More... | |
int | osip_sem_destroy (struct osip_sem *sem) |
Destroy a semaphore. More... | |
int | osip_sem_post (struct osip_sem *sem) |
Post operation on a semaphore. More... | |
int | osip_sem_wait (struct osip_sem *sem) |
Wait operation on a semaphore. More... | |
int | osip_sem_trywait (struct osip_sem *sem) |
Wait operation on a semaphore. More... | |
struct osip_mutex * | osip_mutex_init (void) |
Allocate and Initialise a mutex. More... | |
void | osip_mutex_destroy (struct osip_mutex *mut) |
Destroy the mutex. More... | |
int | osip_mutex_lock (struct osip_mutex *mut) |
Lock the mutex. More... | |
int | osip_mutex_unlock (struct osip_mutex *mut) |
Unlock the mutex. More... | |
oSIP Thread, Mutex and Semaphore definitions
Those methods are only available if the library is compile in multi threaded mode. This is the default for oSIP.
Definition in file osip_mt.h.