Lumiera  0.pre.03
»edit your freedom«
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mutex.c File Reference

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_destroy (LumieraMutex self, struct nobug_flag *flag, const struct nobug_context ctx)
 Destroy a mutex variable. More...
 
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. More...
 

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.

◆ 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.