Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
test-locking.c File Reference

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.

Description

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.

See also
mutex.h
condition.h

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)
 

Function Documentation

◆ TEST() [1/6]

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() [2/6]

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() [3/6]

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() [4/6]

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() [5/6]

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() [6/6]

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: