diff options
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 @@ | |||
1 | #ifndef _TARGET_H_ | ||
2 | #define _TARGET_H_ | ||
3 | |||
4 | #include <pthread.h> | ||
5 | |||
6 | #define TLSF_MLOCK_T pthread_mutex_t | ||
7 | #define TLSF_CREATE_LOCK(l) pthread_mutex_init (l, NULL) | ||
8 | #define TLSF_DESTROY_LOCK(l) pthread_mutex_destroy(l) | ||
9 | #define TLSF_ACQUIRE_LOCK(l) pthread_mutex_lock(l) | ||
10 | #define TLSF_RELEASE_LOCK(l) pthread_mutex_unlock(l) | ||
11 | |||
12 | #endif | ||