gml_Mutex.h File Reference


Detailed Description

Wrapper around APR's thread mutexes.

#include "gml/base/gml_Types.h"

Go to the source code of this file.


Typedefs

typedef gml_TMutex_ * gml_TMutex
 Opaque type for mutexes.

Functions

GML_EXTERN_C void gml_MutexLock (gml_TMutex *mutex)
 Acquire an exclusive lock on a mutex.
GML_EXTERN_C void gml_MutexUnlock (gml_TMutex *mutex)
 Release a locked mutex.
GML_EXTERN_C void gml_MutexFinalize (gml_TMutex *mutex)
 Release any resources claimed by a mutex.

Typedef Documentation

typedef struct gml_TMutex_* gml_TMutex

Opaque type for mutexes.

A mutex should always be NULL initially.


Function Documentation

GML_EXTERN_C void gml_MutexLock ( gml_TMutex mutex  ) 

Acquire an exclusive lock on a mutex.

The result of locking a mutex twice from the same thread is undefined.

GML_EXTERN_C void gml_MutexUnlock ( gml_TMutex mutex  ) 

Release a locked mutex.

It is not an error to unlock a mutex multiple times. Behavior is undefined is the mutex has never been locked before.

Generated on Tue Jun 12 14:03:28 2007 for gml by Doxygen 1.5.2.