summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_spinlock.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-09-17 16:37:17 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-09-17 16:37:17 +0300
commit4bb45250314ad0c26ce7f5578a173340007276de (patch)
tree488c08c6a7eda1d72967d3d21f967bc25a996954 /src/nxt_spinlock.h
parent74b69f5e95ce6a3fea4bbe0f681afcc4b8ecdec9 (diff)
downloadunit-4bb45250314ad0c26ce7f5578a173340007276de.tar.gz
unit-4bb45250314ad0c26ce7f5578a173340007276de.tar.bz2
Removed deprecated MacOSX OSSpinLockLock().
Diffstat (limited to 'src/nxt_spinlock.h')
-rw-r--r--src/nxt_spinlock.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/nxt_spinlock.h b/src/nxt_spinlock.h
index 072e001d..28e05445 100644
--- a/src/nxt_spinlock.h
+++ b/src/nxt_spinlock.h
@@ -8,24 +8,9 @@
#define _NXT_UNIX_SPINLOCK_H_INCLUDED_
-#if (NXT_HAVE_MACOSX_SPINLOCK)
-
-#include <libkern/OSAtomic.h>
-
-typedef OSSpinLock nxt_thread_spinlock_t;
-
-#define \
-nxt_thread_spin_init(ncpu, count)
-
-#else
-
typedef nxt_atomic_t nxt_thread_spinlock_t;
NXT_EXPORT void nxt_thread_spin_init(nxt_uint_t ncpu, nxt_uint_t count);
-
-#endif
-
-
NXT_EXPORT void nxt_thread_spin_lock(nxt_thread_spinlock_t *lock);
NXT_EXPORT nxt_bool_t nxt_thread_spin_trylock(nxt_thread_spinlock_t *lock);
NXT_EXPORT void nxt_thread_spin_unlock(nxt_thread_spinlock_t *lock);