diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-10-24 20:15:01 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-10-26 23:29:46 +0000 |
commit | 5bb7723803960ee6ec84197fe0ec3801ea7507eb (patch) | |
tree | 143fb9a69af0e8a54ea7a4654f96084a7d0dd11f /lib/util/mutex.c | |
parent | e5ebc486975cc172d9547b34151204c58f0d14c2 (diff) | |
download | samba-5bb7723803960ee6ec84197fe0ec3801ea7507eb.tar.gz samba-5bb7723803960ee6ec84197fe0ec3801ea7507eb.tar.bz2 samba-5bb7723803960ee6ec84197fe0ec3801ea7507eb.zip |
lib/util: remove useless ../lib/util/mutex.*
Only the disabled process_thread.c registers uses the register fn,
all other functions are not used anywhere.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Oct 26 23:29:46 UTC 2010 on sn-devel-104
Diffstat (limited to 'lib/util/mutex.c')
-rw-r--r-- | lib/util/mutex.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/lib/util/mutex.c b/lib/util/mutex.c deleted file mode 100644 index 4d0df68eed..0000000000 --- a/lib/util/mutex.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - Unix SMB/CIFS implementation. - Samba mutex/lock functions - Copyright (C) Andrew Tridgell 2003 - Copyright (C) James J Myers 2003 - - 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 3 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, see <http://www.gnu.org/licenses/>. -*/ -#include "includes.h" -#include "mutex.h" - -/** - * @file - * @brief Mutex utility functions - */ - -/* the registered mutex handlers */ -static struct { - const char *name; - struct mutex_ops ops; -} mutex_handlers; - -/* read/write lock routines */ - - -/** - register a set of mutex/rwlock handlers. - Should only be called once in the execution of smbd. -*/ -_PUBLIC_ bool register_mutex_handlers(const char *name, struct mutex_ops *ops) -{ - if (mutex_handlers.name != NULL) { - /* it's already registered! */ - DEBUG(2,("mutex handler '%s' already registered - failed '%s'\n", - mutex_handlers.name, name)); - return false; - } - - mutex_handlers.name = name; - mutex_handlers.ops = *ops; - - DEBUG(2,("mutex handler '%s' registered\n", name)); - return true; -} - |