summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_thread.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_thread.h
parent8b4b52ae3b3c9400b3d7040a591203a0c1b74ec3 (diff)
downloadunit-b84aa64dcbfb92d31cef10f2f45025a67f2418e4.tar.gz
unit-b84aa64dcbfb92d31cef10f2f45025a67f2418e4.tar.bz2
Removed configure option --no-threads.
Diffstat (limited to 'src/nxt_thread.h')
-rw-r--r--src/nxt_thread.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/nxt_thread.h b/src/nxt_thread.h
index 33314b71..4a71a5a1 100644
--- a/src/nxt_thread.h
+++ b/src/nxt_thread.h
@@ -8,8 +8,6 @@
#define _NXT_UNIX_THREAD_H_INCLUDED_
-#if (NXT_THREADS)
-
/*
* Thread Specific Data
*
@@ -126,26 +124,6 @@ NXT_EXPORT nxt_err_t nxt_thread_cond_wait(nxt_thread_cond_t *cond,
nxt_thread_mutex_t *mtx, nxt_nsec_t timeout);
-#else /* !(NXT_THREADS) */
-
-#define \
-nxt_thread_extern_data(type, tsd) \
- NXT_EXPORT extern type tsd
-
-#define \
-nxt_thread_declare_data(type, tsd) \
- type tsd
-
-#define \
-nxt_thread_init_data(tsd)
-
-#define \
-nxt_thread_get_data(tsd) \
- &tsd
-
-#endif /* NXT_THREADS */
-
-
#if (NXT_HAVE_PTHREAD_YIELD)
#define \
nxt_thread_yield() \
@@ -172,10 +150,8 @@ struct nxt_thread_s {
nxt_tid_t tid;
nxt_thread_handle_t handle;
-#if (NXT_THREADS)
nxt_thread_link_t *link;
nxt_thread_pool_t *thread_pool;
-#endif
nxt_thread_time_t time;