summaryrefslogtreecommitdiffstats
path: root/lib/tlsf/src/target.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-03-27 16:27:02 +0200
committerThomas Martitz <kugel@rockbox.org>2012-03-28 23:02:39 +0200
commitc56950ea3a9e0244461ce445f25bd7a80c8f7199 (patch)
tree6fb9547aebb230ec15b26db11867a4072d2a6d7b /lib/tlsf/src/target.h
parent9f2ee2f21abec56108dfb135eaeba5f416f1eb12 (diff)
downloadrockbox-c56950ea3a9e0244461ce445f25bd7a80c8f7199.tar.gz
rockbox-c56950ea3a9e0244461ce445f25bd7a80c8f7199.zip
tlsf: move to /lib (it's also used by plugins).
Change-Id: I5e37b28c1ce4608d60b036343f280af3311ad490
Diffstat (limited to 'lib/tlsf/src/target.h')
-rw-r--r--lib/tlsf/src/target.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/tlsf/src/target.h b/lib/tlsf/src/target.h
new file mode 100644
index 0000000000..1afd62aef2
--- /dev/null
+++ b/lib/tlsf/src/target.h
@@ -0,0 +1,12 @@
+#ifndef _TARGET_H_
+#define _TARGET_H_
+
+#include <pthread.h>
+
+#define TLSF_MLOCK_T pthread_mutex_t
+#define TLSF_CREATE_LOCK(l) pthread_mutex_init (l, NULL)
+#define TLSF_DESTROY_LOCK(l) pthread_mutex_destroy(l)
+#define TLSF_ACQUIRE_LOCK(l) pthread_mutex_lock(l)
+#define TLSF_RELEASE_LOCK(l) pthread_mutex_unlock(l)
+
+#endif