SIP Witch 1.9.15
[フレーム]
Data Structures | Functions
oSIP semaphore definitions

Data Structures

struct   osip_sem
  Structure for referencing a semaphore element. More...
 

Functions

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...
 

Detailed Description

Function Documentation

int osip_sem_destroy ( struct osip_semsem )

#include <osip_mt.h>

Destroy a semaphore.

Parameters
sem The semaphore to destroy.
struct osip_sem* osip_sem_init ( unsigned int  value )

#include <osip_mt.h>

Allocate and Initialise a semaphore.

Parameters
value The initial value for the semaphore.
int osip_sem_post ( struct osip_semsem )

#include <osip_mt.h>

Post operation on a semaphore.

Parameters
sem The semaphore to destroy.
int osip_sem_trywait ( struct osip_semsem )

#include <osip_mt.h>

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_semsem )

#include <osip_mt.h>

Wait operation on a semaphore.

NOTE: this call will block if the semaphore is at 0.

Parameters
sem The semaphore to destroy.

Generated on Dec 21, 2017 for sipwitch-1.9.15 (*.h and *.cpp), libosip2-5.0.0 (*.h) and libeXosip2-4.0.0 (*.h), by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /