summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--threadproc/beos/thread.c6
-rw-r--r--threadproc/netware/thread.c6
-rw-r--r--threadproc/os2/thread.c6
-rw-r--r--threadproc/unix/thread.c6
-rw-r--r--threadproc/win32/thread.c6
5 files changed, 20 insertions, 10 deletions
diff --git a/threadproc/beos/thread.c b/threadproc/beos/thread.c
index bf297330f..10fe03a97 100644
--- a/threadproc/beos/thread.c
+++ b/threadproc/beos/thread.c
@@ -166,6 +166,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
apr_threadattr_t *attr,
apr_pool_t *pool)
{
+#if APR_HAS_THREAD_LOCAL
apr_status_t stat;
*current = apr_thread_current();
@@ -181,10 +182,11 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
(*current)->td = apr_os_thread_current();
-#if APR_HAS_THREAD_LOCAL
current_thread = *current;
-#endif
return APR_SUCCESS;
+#else
+ return APR_ENOTIMPL;
+#endif
}
APR_DECLARE(void) apr_thread_current_after_fork(void)
diff --git a/threadproc/netware/thread.c b/threadproc/netware/thread.c
index 822d2e24f..3ee9514fb 100644
--- a/threadproc/netware/thread.c
+++ b/threadproc/netware/thread.c
@@ -201,6 +201,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
apr_threadattr_t *attr,
apr_pool_t *pool)
{
+#if APR_HAS_THREAD_LOCAL
apr_status_t stat;
*current = apr_thread_current();
@@ -216,10 +217,11 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
(*current)->td = apr_os_thread_current();
-#if APR_HAS_THREAD_LOCAL
current_thread = *current;
-#endif
return APR_SUCCESS;
+#else
+ return APR_ENOTIMPL;
+#endif
}
APR_DECLARE(void) apr_thread_current_after_fork(void)
diff --git a/threadproc/os2/thread.c b/threadproc/os2/thread.c
index 1ea7954dc..ca3164441 100644
--- a/threadproc/os2/thread.c
+++ b/threadproc/os2/thread.c
@@ -169,6 +169,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
apr_threadattr_t *attr,
apr_pool_t *pool)
{
+#if APR_HAS_THREAD_LOCAL
apr_status_t stat;
*current = apr_thread_current();
@@ -184,10 +185,11 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
(*current)->tid = apr_os_thread_current();
-#if APR_HAS_THREAD_LOCAL
current_thread = *current;
-#endif
return APR_SUCCESS;
+#else
+ return APR_ENOTIMPL;
+#endif
}
APR_DECLARE(void) apr_thread_current_after_fork(void)
diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c
index 70a7c5d30..ccc34c4d2 100644
--- a/threadproc/unix/thread.c
+++ b/threadproc/unix/thread.c
@@ -247,6 +247,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
apr_threadattr_t *attr,
apr_pool_t *pool)
{
+#if APR_HAS_THREAD_LOCAL
apr_status_t stat;
*current = apr_thread_current();
@@ -262,10 +263,11 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
*(*current)->td = apr_os_thread_current();
-#if APR_HAS_THREAD_LOCAL
current_thread = *current;
-#endif
return APR_SUCCESS;
+#else
+ return APR_ENOTIMPL;
+#endif
}
APR_DECLARE(void) apr_thread_current_after_fork(void)
diff --git a/threadproc/win32/thread.c b/threadproc/win32/thread.c
index 502c317a8..2929d4cbb 100644
--- a/threadproc/win32/thread.c
+++ b/threadproc/win32/thread.c
@@ -182,6 +182,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
apr_threadattr_t *attr,
apr_pool_t *pool)
{
+#if APR_HAS_THREAD_LOCAL
apr_status_t stat;
*current = apr_thread_current();
@@ -199,10 +200,11 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
(*current)->td = apr_os_thread_current();
}
-#if APR_HAS_THREAD_LOCAL
current_thread = *current;
-#endif
return APR_SUCCESS;
+#else
+ return APR_ENOTIMPL;
+#endif
}
APR_DECLARE(void) apr_thread_current_after_fork(void)