summaryrefslogtreecommitdiffstats
path: root/lib/tlsf/src/target.h
blob: 1afd62aef20978e7fb998d11be68266fb834f062 (plain)
1
2
3
4
5
6
7
8
9
10
11
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