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

Recursive Mutexes. More...

Go to the source code of this file.

Description

Recursive Mutexes.

Definition in file recmutex.c.

#include "lib/recmutex.h"

Functions

static void recmutexattr_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.
 
LumieraRecmutex lumiera_recmutex_destroy (LumieraRecmutex self, struct nobug_flag *flag, const struct nobug_context ctx)
 Destroy a recursive mutex variable.
 

Variables

static pthread_once_t recmutexattr_once = PTHREAD_ONCE_INIT
 
static pthread_mutexattr_t recmutexattr
 

Function Documentation

◆ recmutexattr_init()

static void recmutexattr_init ( )
static

Definition at line 24 of file recmutex.c.

References recmutexattr.

Referenced by lumiera_recmutex_init().

+ Here is the caller graph for this function:

◆ 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 32 of file recmutex.c.

References recmutexattr, recmutexattr_init(), and recmutexattr_once.

Referenced by lumiera_interfaceregistry_init(), and TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 53 of file recmutex.c.

References LUMIERA_DIE.

Referenced by lumiera_interfaceregistry_destroy(), and TEST().

+ Here is the caller graph for this function:

Variable Documentation

◆ recmutexattr_once

pthread_once_t recmutexattr_once = PTHREAD_ONCE_INIT
static

Definition at line 21 of file recmutex.c.

Referenced by lumiera_recmutex_init().

◆ recmutexattr

pthread_mutexattr_t recmutexattr
static

Definition at line 22 of file recmutex.c.

Referenced by lumiera_recmutex_init(), and recmutexattr_init().