mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
use __thread locals on linux
This commit is contained in:
parent
10009490b8
commit
fea903900d
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
#include "mimalloc-types.h"
|
#include "mimalloc-types.h"
|
||||||
|
|
||||||
#if defined(MI_MALLOC_OVERRIDE)
|
#if defined(MI_MALLOC_OVERRIDE)
|
||||||
#if defined(__APPLE__) || defined(__linux__)
|
#if defined(__APPLE__)
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#define MI_TLS_PTHREADS
|
#define MI_TLS_PTHREADS
|
||||||
#elif (defined(__OpenBSD__) || defined(__DragonFly__))
|
#elif (defined(__OpenBSD__) || defined(__DragonFly__))
|
||||||
|
|
Loading…
Add table
Reference in a new issue