diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-03-27 16:27:02 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-03-28 23:02:39 +0200 |
commit | c56950ea3a9e0244461ce445f25bd7a80c8f7199 (patch) | |
tree | 6fb9547aebb230ec15b26db11867a4072d2a6d7b /lib/tlsf/src/target.h | |
parent | 9f2ee2f21abec56108dfb135eaeba5f416f1eb12 (diff) | |
download | rockbox-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.h | 12 |
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 |