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

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


Typedefs

typedef _Mutex * Mutex
typedef enum _MutexType MutexType

Enumerations

enum  _MutexType { MutexTypeRecursive = 0, MutexTypeNonRecursive = 1, MutexTypeFIFO = 0, MutexTypePriority = 2 }

Functions

ErrorCode mutexCreate (Mutex *mutex, MutexType type)
ErrorCode mutexLock (Mutex mutex, Timeout timeout)
ErrorCode mutexUnlock (Mutex mutex)
ErrorCode mutexDestroy (Mutex *mutex)

Detailed Description

 *  *  * Defines interfaces for implementing mutual exclusion

Typedef Documentation

typedef struct _Mutex* Mutex
 

Definition at line 23 of file mutex.h.

typedef enum _MutexType MutexType
 


Enumeration Type Documentation

enum _MutexType
 

Enumerator:
MutexTypeRecursive 
MutexTypeNonRecursive 
MutexTypeFIFO 
MutexTypePriority 

Definition at line 26 of file mutex.h.


Function Documentation

ErrorCode mutexCreate Mutex mutex,
MutexType  type
 

Parameters:
mutex Pointer to a mutex handle, which will contain a valid mutex upon completion.
type The type of mutex to be created

ErrorCode mutexDestroy Mutex mutex  ) 
 

Parameters:
mutex The mutex to destroy

ErrorCode mutexLock Mutex  mutex,
Timeout  timeout
 

Parameters:
mutex The mutex to lock
timeout The time to wait for the mutex to be available for locking.

ErrorCode mutexUnlock Mutex  mutex  ) 
 

Parameters:
mutex The mutex to unlock


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