mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-27 13:33:18 +08:00
use __thread locals on linux
This commit is contained in:
parent
10009490b8
commit
fea903900d
@ -11,7 +11,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||
#include "mimalloc-types.h"
|
||||
|
||||
#if defined(MI_MALLOC_OVERRIDE)
|
||||
#if defined(__APPLE__) || defined(__linux__)
|
||||
#if defined(__APPLE__)
|
||||
#include <pthread.h>
|
||||
#define MI_TLS_PTHREADS
|
||||
#elif (defined(__OpenBSD__) || defined(__DragonFly__))
|
||||
|
Loading…
x
Reference in New Issue
Block a user