SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
osip_mt.h File Reference

oSIP Thread, Mutex and Semaphore definitions More...

#include <stdio.h>
Include dependency graph for osip_mt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct osip_threadosip_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_semosip_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_mutexosip_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...
 

Detailed Description

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.