Lumiera  0.pre.03
»edit your freedom«
recmutex.c File Reference

Go to the source code of this file.

Description

Recursive Mutexes.

Definition in file recmutex.c.

#include "lib/recmutex.h"

Functions

LumieraRecmutex lumiera_recmutex_destroy (LumieraRecmutex self, struct nobug_flag *flag, const struct nobug_context ctx)
 Destroy a recursive mutex variable. More...
 
LumieraRecmutex lumiera_recmutex_init (LumieraRecmutex self, const char *purpose, struct nobug_flag *flag, const struct nobug_context ctx)
 Initialise a recursive mutex variable Initialises a 'recursive' mutex which might be locked by the same thread multiple times. More...
 
static void recmutexattr_init ()
 

Variables

static pthread_mutexattr_t recmutexattr
 
static pthread_once_t recmutexattr_once = PTHREAD_ONCE_INIT
 

Function Documentation

◆ lumiera_recmutex_init()

LumieraRecmutex lumiera_recmutex_init ( LumieraRecmutex  self,
const char *  purpose,
struct nobug_flag *  flag,
const struct nobug_context  ctx 
)

Initialise a recursive mutex variable Initialises a 'recursive' mutex which might be locked by the same thread multiple times.

Parameters
selfis a pointer to the mutex to be initialised
Returns
self as given

Definition at line 41 of file recmutex.c.

◆ lumiera_recmutex_destroy()

LumieraRecmutex lumiera_recmutex_destroy ( LumieraRecmutex  self,
struct nobug_flag *  flag,
const struct nobug_context  ctx 
)

Destroy a recursive mutex variable.

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

Definition at line 62 of file recmutex.c.

References LUMIERA_DIE.