![]() |
Lumiera 0.pre.04
»edit your freedom«
|
C unit test to cover convenience setup for POSIX locking primitives These convenience macros are intended for use in low-level C code, where minimal and precise locking is relevant for performance reasons. More...
Go to the source code of this file.
C unit test to cover convenience setup for POSIX locking primitives These convenience macros are intended for use in low-level C code, where minimal and precise locking is relevant for performance reasons.
Definition in file test-locking.c.
#include "lib/test/test.h"#include "lib/mutex.h"#include "lib/recmutex.h"#include <stdio.h>#include <string.h>Functions | |
| TESTS_BEGIN | TEST (mutexsection) |
| TEST (mutexforgotunlock) | |
| TEST (mutexexplicitunlock) | |
| TEST (nestedmutexsection) | |
| TEST (chainedmutexsection) | |
| TEST (recursivemutexsection) | |
| TESTS_BEGIN TEST | ( | mutexsection | ) |
Definition at line 33 of file test-locking.c.
References lumiera_mutex_destroy(), lumiera_mutex_init(), and LUMIERA_MUTEX_SECTION.
Here is the call graph for this function:| TEST | ( | mutexforgotunlock | ) |
Definition at line 52 of file test-locking.c.
References lumiera_mutex_destroy(), lumiera_mutex_init(), and LUMIERA_MUTEX_SECTION.
Here is the call graph for this function:| TEST | ( | mutexexplicitunlock | ) |
Definition at line 66 of file test-locking.c.
References lumiera_mutex_destroy(), lumiera_mutex_init(), LUMIERA_MUTEX_SECTION, and LUMIERA_MUTEX_SECTION_UNLOCK.
Here is the call graph for this function:| TEST | ( | nestedmutexsection | ) |
Definition at line 82 of file test-locking.c.
References lumiera_mutex_destroy(), lumiera_mutex_init(), and LUMIERA_MUTEX_SECTION.
Here is the call graph for this function:| TEST | ( | chainedmutexsection | ) |
Definition at line 104 of file test-locking.c.
References lumiera_mutex_destroy(), lumiera_mutex_init(), LUMIERA_MUTEX_SECTION, and LUMIERA_MUTEX_SECTION_CHAIN.
Here is the call graph for this function:| TEST | ( | recursivemutexsection | ) |
Definition at line 128 of file test-locking.c.
References lumiera_recmutex_destroy(), lumiera_recmutex_init(), and LUMIERA_RECMUTEX_SECTION.
Here is the call graph for this function: