]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/tlsf/lib/contrib/src/target.h
Inital import
[l4.git] / l4 / pkg / tlsf / lib / contrib / src / target.h
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