Lumiera  0.pre.03
»edit your freedom«
lockerror.c File Reference

Go to the source code of this file.

Description

implementation and definitions for error-handling on low-level locking

Definition in file lockerror.c.

#include "lib/lockerror.h"
#include <errno.h>

Functions

 LUMIERA_ERROR_DEFINE (LOCK_ACQUIRE, "locking failed")
 
 LUMIERA_ERROR_DEFINE (LOCK_RELEASE, "unlocking failed")
 
 LUMIERA_ERROR_DEFINE (LOCK_DESTROY, "lock destroy failed")
 
 LUMIERA_ERROR_DEFINE (LOCK_INVAL, "lock initialisation error")
 
 LUMIERA_ERROR_DEFINE (LOCK_BUSY, "already locked")
 
 LUMIERA_ERROR_DEFINE (LOCK_DEADLK, "already locked by this thread")
 
 LUMIERA_ERROR_DEFINE (LOCK_PERM, "not locked by this thread")
 
 LUMIERA_ERROR_DEFINE (LOCK_TIMEOUT, "timeout")
 
 LUMIERA_ERROR_DEFINE (LOCK_AGAIN, "too much recursive locks")
 
void lumiera_lockerror_set (int err, struct nobug_flag *flag, const struct nobug_context ctx)
 Translate pthread error code into lumiera error.