lib/mutex.c File Reference


Detailed Description

Mutual exclusion locking.

Definition in file mutex.c.

#include "lib/mutex.h"

Include dependency graph for mutex.c:

Go to the source code of this file.

Functions

LumieraMutex lumiera_mutex_destroy (LumieraMutex self, struct nobug_flag *flag, const struct nobug_context ctx)
 Destroy a mutex variable.
LumieraMutex lumiera_mutex_init (LumieraMutex self, const char *purpose, struct nobug_flag *flag, const struct nobug_context ctx)
 Initialize a mutex variable This initializes a 'fast' default mutex which must not be locked recursively from one thread.


Function Documentation

LumieraMutex lumiera_mutex_init ( LumieraMutex  self,
const char *  purpose,
struct nobug_flag *  flag,
const struct nobug_context  ctx 
)

Initialize a mutex variable This initializes a 'fast' default mutex which must not be locked recursively from one thread.

Parameters:
self is a pointer to the mutex to be initialized
purpose textual hint for the nobug resourcetracker
flag nobug logging target
Returns:
self as given

Definition at line 30 of file mutex.c.

Referenced by lumiera_config_init(), lumiera_filedescriptor_new(), lumiera_filehandlecache_new(), lumiera_mmapcache_new(), and lumiera_mmapings_init().

Here is the caller graph for this function:

LumieraMutex lumiera_mutex_destroy ( LumieraMutex  self,
struct nobug_flag *  flag,
const struct nobug_context  ctx 
)

Destroy a mutex variable.

Parameters:
self is a pointer to the mutex to be destroyed
flag nobug logging target
Returns:
self as given

Definition at line 48 of file mutex.c.

References LUMIERA_DIE.

Referenced by lumiera_config_destroy(), lumiera_filedescriptor_delete(), lumiera_filehandlecache_delete(), lumiera_mmapcache_delete(), and lumiera_mmapings_destroy().

Here is the caller graph for this function:


Generated on Sun Aug 1 21:31:24 2010 for Lumiera by  doxygen 1.5.6