Lumiera  0.pre.03
»edit your freedom«
test-locking.c File Reference

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)