Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
mutex.c File Reference

Mutual exclusion locking. More...

Go to the source code of this file.

Description

Mutual exclusion locking.

Definition in file mutex.c.

#include "lib/mutex.h"

Functions

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

Function Documentation

◆ lumiera_mutex_init()

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

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

Parameters
selfis a pointer to the mutex to be initialised
purposetextual hint for the nobug resourcetracker
flagnobug logging target
Returns
self as given

Definition at line 21 of file mutex.c.

References NULL.

Referenced by lumiera_config_init(), TEST(), TEST(), TEST(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ lumiera_mutex_destroy()

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

Destroy a mutex variable.

Parameters
selfis a pointer to the mutex to be destroyed
flagnobug logging target
Returns
self as given

Definition at line 39 of file mutex.c.

References LUMIERA_DIE.

Referenced by lumiera_config_destroy(), TEST(), TEST(), TEST(), TEST(), and TEST().

+ Here is the caller graph for this function: