summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_spinlock.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-24 17:43:32 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-24 17:43:32 +0300
commitb84aa64dcbfb92d31cef10f2f45025a67f2418e4 (patch)
treebd7509540538801bdde233b24c0a130fbd6d757a /src/nxt_spinlock.h
parent8b4b52ae3b3c9400b3d7040a591203a0c1b74ec3 (diff)
downloadunit-b84aa64dcbfb92d31cef10f2f45025a67f2418e4.tar.gz
unit-b84aa64dcbfb92d31cef10f2f45025a67f2418e4.tar.bz2
Removed configure option --no-threads.
Diffstat (limited to '')
-rw-r--r--src/nxt_spinlock.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/nxt_spinlock.h b/src/nxt_spinlock.h
index bdc3a5f6..072e001d 100644
--- a/src/nxt_spinlock.h
+++ b/src/nxt_spinlock.h
@@ -8,8 +8,6 @@
#define _NXT_UNIX_SPINLOCK_H_INCLUDED_
-#if (NXT_THREADS)
-
#if (NXT_HAVE_MACOSX_SPINLOCK)
#include <libkern/OSAtomic.h>
@@ -33,25 +31,4 @@ 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);
-#else /* !(NXT_THREADS) */
-
-
-typedef nxt_atomic_t nxt_thread_spinlock_t;
-
-#define \
-nxt_thread_spin_init(ncpu, count)
-
-#define \
-nxt_thread_spin_lock(lock)
-
-#define \
-nxt_thread_spin_trylock(lock) \
- 1
-
-#define \
-nxt_thread_spin_unlock(lock)
-
-#endif
-
-
#endif /* _NXT_UNIX_SPINLOCK_H_INCLUDED_ */