diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 2ae8a9b2d..f707b72b9 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -38,7 +38,6 @@ liblumi_a_SOURCES = \ noinst_HEADERS += \ $(liblumi_a_srcdir)/plugin.h \ $(liblumi_a_srcdir)/error.h \ - $(liblumi_a_srcdir)/locking.h \ $(liblumi_a_srcdir)/mutex.h \ $(liblumi_a_srcdir)/rwlock.h \ $(liblumi_a_srcdir)/condition.h \ diff --git a/src/lib/locking.h b/src/lib/locking.h deleted file mode 100644 index 3c4d497d8..000000000 --- a/src/lib/locking.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - locking.h - shared declarations for all locking primitives - - Copyright (C) Lumiera.org - 2008, Christian Thaeter - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - -#ifndef LUMIERA_LOCKING_H -#define LUMIERA_LOCKING_H - -#include -#include -#include - -#include "lib/error.h" - - -LUMIERA_ERROR_DECLARE (MUTEX_LOCK); -LUMIERA_ERROR_DECLARE (MUTEX_UNLOCK); -LUMIERA_ERROR_DECLARE (MUTEX_DESTROY); - -/** - * @file - * Shared declarations for all locking primitives. - */ - -/** - * used to store the current lock state. - * - * - */ -enum lumiera_lockstate - { - LUMIERA_UNLOCKED, - LUMIERA_LOCKED, - LUMIERA_RDLOCKED, - LUMIERA_WRLOCKED - }; - -#endif diff --git a/src/lib/mutex.h b/src/lib/mutex.h index bb01a822a..54206f7f1 100644 --- a/src/lib/mutex.h +++ b/src/lib/mutex.h @@ -22,13 +22,19 @@ #ifndef LUMIERA_MUTEX_H #define LUMIERA_MUTEX_H -#include "lib/locking.h" +#include "lib/error.h" + +#include +#include /** * @file * Mutual exclusion locking, header. */ +LUMIERA_ERROR_DECLARE (MUTEX_LOCK); +LUMIERA_ERROR_DECLARE (MUTEX_UNLOCK); +LUMIERA_ERROR_DECLARE (MUTEX_DESTROY); /** * Mutual exclusive section.