mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 17:17:19 +03:00
Deprecate OSSpinLock.
This commit is contained in:
parent
13c237c7ef
commit
43f3b1ad0c
8 changed files with 5 additions and 48 deletions
|
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
|
||||
#include "test/jemalloc_test_defs.h"
|
||||
|
||||
#ifdef JEMALLOC_OSSPIN
|
||||
#if defined(JEMALLOC_OSATOMIC)
|
||||
# include <libkern/OSAtomic.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ typedef struct {
|
|||
CRITICAL_SECTION lock;
|
||||
#elif (defined(JEMALLOC_OS_UNFAIR_LOCK))
|
||||
os_unfair_lock lock;
|
||||
#elif (defined(JEMALLOC_OSSPIN))
|
||||
OSSpinLock lock;
|
||||
#else
|
||||
pthread_mutex_t lock;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue