Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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 */
24LUMIERA_ERROR_DECLARE (LOCK_ACQUIRE);
25LUMIERA_ERROR_DECLARE (LOCK_RELEASE);
26LUMIERA_ERROR_DECLARE (LOCK_DESTROY);
27
28/* runtime errors */
33LUMIERA_ERROR_DECLARE (LOCK_TIMEOUT);
35
39void
40lumiera_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 error handling (C interface).
#define LUMIERA_ERROR_DECLARE(err)
Forward declare an error constant.
Definition error.h:62
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