Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

semaphore.h: semaphore routines
[platform independant portions of code]


Typedefs

typedef _Semaphore * Semaphore
typedef enum _SemaphoreType SemaphoreType

Enumerations

enum  _SemaphoreType { SemaphoreTypeFIFO, SemaphoreTypePriority }

Functions

ErrorCode semaphoreCreate (Semaphore *semaphore, SemaphoreType type, uint32 initial)
ErrorCode semaphoreUp (Semaphore semaphore)
ErrorCode semaphoreDown (Semaphore semaphore, Timeout timeout)
ErrorCode semaphoreDestroy (Semaphore *semaphore)

Detailed Description

 *  *  * Defines interfaces for semaphores

Typedef Documentation

typedef struct _Semaphore* Semaphore
 

Definition at line 23 of file semaphore.h.

typedef enum _SemaphoreType SemaphoreType
 


Enumeration Type Documentation

enum _SemaphoreType
 

Enumerator:
SemaphoreTypeFIFO 
SemaphoreTypePriority 

Definition at line 25 of file semaphore.h.


Function Documentation

ErrorCode semaphoreCreate Semaphore semaphore,
SemaphoreType  type,
uint32  initial
 

Create a new semaphore

Parameters:
semaphore The semaphore to create
type The type of semaphore to create
initial The initial count of the semaphore

ErrorCode semaphoreDestroy Semaphore semaphore  ) 
 

Destroy a semaphore

Parameters:
semaphore The semaphore to destroy

ErrorCode semaphoreDown Semaphore  semaphore,
Timeout  timeout
 

Decrement the semaphore count

Parameters:
semaphore The semaphore whose count will be decremented
timeout The ammount of time this function will wait to succeed if the count is already 0

ErrorCode semaphoreUp Semaphore  semaphore  ) 
 

Increment the semaphore count

Parameters:
semaphore The semaphore whose count will be incremented


Generated on Wed Mar 22 20:36:34 2006 for ndk by  doxygen 1.4.4