summaryrefslogtreecommitdiff
path: root/lib/tlsf/src/target.h
diff options
context:
space:
mode:
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 0000000..1afd62a
--- /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