Removed deprecated MacOSX OSSpinLockLock().
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user