Deprecate OSSpinLock.

This commit is contained in:
Qi Wang
2018-11-08 15:43:09 -08:00
committed by Qi Wang
parent 13c237c7ef
commit 43f3b1ad0c
8 changed files with 5 additions and 48 deletions

View File

@@ -25,7 +25,7 @@ extern "C" {
#include "test/jemalloc_test_defs.h"
#ifdef JEMALLOC_OSSPIN
#if defined(JEMALLOC_OSATOMIC)
# include <libkern/OSAtomic.h>
#endif

View File

@@ -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