Lumiera
0.pre.03
»edit your freedom«
lockerror.h
Go to the documentation of this file.
1
/*
2
lockerror.h - error declarations for all locks (mutex, rwlocks, cond vars)
3
4
Copyright (C)
5
2010, Christian Thaeter <ct@pipapo.org>
6
7
**Lumiera** is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 2 of the License, or (at your
10
option) any later version. See the file COPYING for further details.
11
*/
12
13
18
#ifndef LUMIERA_LOCKERRORS_H
19
#define LUMIERA_LOCKERRORS_H
20
21
#include "
lib/error.h
"
22
23
/* fatal errors (EINVAL usually), we DIE on these, shall never ever happen on a correct program */
24
LUMIERA_ERROR_DECLARE
(LOCK_ACQUIRE);
25
LUMIERA_ERROR_DECLARE
(LOCK_RELEASE);
26
LUMIERA_ERROR_DECLARE
(LOCK_DESTROY);
27
28
/* runtime errors */
29
LUMIERA_ERROR_DECLARE
(LOCK_INVAL);
30
LUMIERA_ERROR_DECLARE
(LOCK_BUSY);
31
LUMIERA_ERROR_DECLARE
(LOCK_DEADLK);
32
LUMIERA_ERROR_DECLARE
(LOCK_PERM);
33
LUMIERA_ERROR_DECLARE
(LOCK_TIMEOUT);
34
LUMIERA_ERROR_DECLARE
(LOCK_AGAIN);
35
39
void
40
lumiera_lockerror_set
(
int
err
,
struct
nobug_flag* flag,
const
struct
nobug_context ctx);
41
42
#endif
43
/*
44
// Local Variables:
45
// mode: C
46
// c-file-style: "gnu"
47
// indent-tabs-mode: nil
48
// End:
49
*/
lumiera_lockerror_set
void lumiera_lockerror_set(int err, struct nobug_flag *flag, const struct nobug_context ctx)
Translate pthread error code into lumiera error.
Definition:
lockerror.c:40
LUMIERA_ERROR_DECLARE
#define LUMIERA_ERROR_DECLARE(err)
Forward declare an error constant.
Definition:
error.h:62
error.h
Lumiera error handling (C interface).
lumiera::error
Definition:
config-rules.hpp:66
lib
lockerror.h
Generated on Fri Dec 13 2024 05:05:34 for Lumiera by
1.8.13