From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/include/linux/mutex-debug.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ANDROID_3.4.5/include/linux/mutex-debug.h (limited to 'ANDROID_3.4.5/include/linux/mutex-debug.h') diff --git a/ANDROID_3.4.5/include/linux/mutex-debug.h b/ANDROID_3.4.5/include/linux/mutex-debug.h new file mode 100644 index 00000000..731d77d6 --- /dev/null +++ b/ANDROID_3.4.5/include/linux/mutex-debug.h @@ -0,0 +1,23 @@ +#ifndef __LINUX_MUTEX_DEBUG_H +#define __LINUX_MUTEX_DEBUG_H + +#include +#include + +/* + * Mutexes - debugging helpers: + */ + +#define __DEBUG_MUTEX_INITIALIZER(lockname) \ + , .magic = &lockname + +#define mutex_init(mutex) \ +do { \ + static struct lock_class_key __key; \ + \ + __mutex_init((mutex), #mutex, &__key); \ +} while (0) + +extern void mutex_destroy(struct mutex *lock); + +#endif -- cgit