Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

oSIP semaphore definitions
[The OS port modules]


Classes

struct  osip_sem

Functions

struct osip_semosip_sem_init (unsigned int value)
int osip_sem_destroy (struct osip_sem *sem)
int osip_sem_post (struct osip_sem *sem)
int osip_sem_wait (struct osip_sem *sem)
int osip_sem_trywait (struct osip_sem *sem)

Function Documentation

int osip_sem_destroy struct osip_sem sem  ) 
 

Destroy a semaphore.

Parameters:
sem The semaphore to destroy.

struct struct osip_sem* osip_sem_init unsigned int  value  ) 
 

Allocate and Initialise a semaphore.

Parameters:
value The initial value for the semaphore.

int osip_sem_post struct osip_sem sem  ) 
 

Post operation on a semaphore.

Parameters:
sem The semaphore to destroy.

int osip_sem_trywait struct osip_sem sem  ) 
 

Wait operation on a semaphore. NOTE: if the semaphore is at 0, this call won't block.

Parameters:
sem The semaphore to destroy.

int osip_sem_wait struct osip_sem sem  ) 
 

Wait operation on a semaphore. NOTE: this call will block if the semaphore is at 0.

Parameters:
sem The semaphore to destroy.


Generated on Tue Feb 22 00:59:47 2005 for libosip by  doxygen 1.4.1