![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
Mutual exclusion locking, header. More...
Go to the source code of this file.
Mutual exclusion locking, header.
Definition in file recmutex.h.
#include "lib/error.h"#include "lib/sectionlock.h"#include "lib/lockerror.h"#include "lib/mutex.h"#include <pthread.h>#include <nobug.h>Macros | |
| #define | LUMIERA_RECMUTEX_SECTION(nobugflag, mtx) |
| Recursive Mutual exclusive section. | |
| #define | LUMIERA_RECMUTEX_SECTION_CHAIN(nobugflag, mtx) |
| #define | LUMIERA_RECMUTEX_SECTION_UNLOCK LUMIERA_SECTION_UNLOCK_(&lumiera_lock_section_) |
Typedefs | |
| typedef lumiera_recmutex * | LumieraRecmutex |
Classes | |
| struct | lumiera_recmutex |
| Recursive Mutex. More... | |
Functions | |
| 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. | |
| static LumieraRecmutex | lumiera_recmutex_lock (LumieraRecmutex self, struct nobug_flag *flag, struct nobug_resource_user **handle, const struct nobug_context ctx) |
| static LumieraRecmutex | lumiera_recmutex_trylock (LumieraRecmutex self, struct nobug_flag *flag, struct nobug_resource_user **handle, const struct nobug_context ctx) |
| static LumieraRecmutex | lumiera_recmutex_timedlock (LumieraRecmutex self, const struct timespec *timeout, struct nobug_flag *flag, struct nobug_resource_user **handle, const struct nobug_context ctx) |
| static void | lumiera_recmutex_unlock (LumieraRecmutex self, struct nobug_flag *flag, struct nobug_resource_user **handle, const struct nobug_context ctx) |
| typedef lumiera_recmutex* LumieraRecmutex |
Definition at line 85 of file recmutex.h.
| #define LUMIERA_RECMUTEX_SECTION | ( | nobugflag, | |
| mtx | |||
| ) |
Recursive Mutual exclusive section.
Definition at line 32 of file recmutex.h.
| #define LUMIERA_RECMUTEX_SECTION_CHAIN | ( | nobugflag, | |
| mtx | |||
| ) |
Definition at line 49 of file recmutex.h.
| #define LUMIERA_RECMUTEX_SECTION_UNLOCK LUMIERA_SECTION_UNLOCK_(&lumiera_lock_section_) |
Definition at line 70 of file recmutex.h.
| 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.
| self | is a pointer to the mutex to be initialised |
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:| LumieraRecmutex lumiera_recmutex_destroy | ( | LumieraRecmutex | self, |
| struct nobug_flag * | flag, | ||
| const struct nobug_context | ctx | ||
| ) |
Destroy a recursive mutex variable.
| self | is a pointer to the mutex to be destroyed |
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:
|
inlinestatic |
Definition at line 111 of file recmutex.h.
References LUMIERA_DIE.
|
inlinestatic |
Definition at line 132 of file recmutex.h.
References lumiera_lockerror_set(), and NULL.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 161 of file recmutex.h.
References lumiera_lockerror_set(), and NULL.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 191 of file recmutex.h.
References LUMIERA_DIE.