mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 10:52:14 +00:00
13 lines
345 B
C
13 lines
345 B
C
#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
|