From c56950ea3a9e0244461ce445f25bd7a80c8f7199 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 27 Mar 2012 16:27:02 +0200 Subject: tlsf: move to /lib (it's also used by plugins). Change-Id: I5e37b28c1ce4608d60b036343f280af3311ad490 --- lib/tlsf/src/target.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/tlsf/src/target.h (limited to 'lib/tlsf/src/target.h') 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 + +#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 -- cgit v1.1