diff options
Diffstat (limited to 'threadproc/unix/thread.c')
-rw-r--r-- | threadproc/unix/thread.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c index 2b255252c..6d1874ac8 100644 --- a/threadproc/unix/thread.c +++ b/threadproc/unix/thread.c @@ -137,7 +137,7 @@ APR_DECLARE(apr_status_t) apr_threadattr_guardsize_set(apr_threadattr_t *attr, } #ifdef APR_HAS_THREAD_LOCAL -static APR_THREAD_LOCAL apr_thread_t *current_thread; +static APR_THREAD_LOCAL apr_thread_t *current_thread = NULL; #endif static void *dummy_worker(void *opaque) @@ -155,9 +155,6 @@ static void *dummy_worker(void *opaque) apr_pool_destroy(thread->pool); } -#ifdef APR_HAS_THREAD_LOCAL - current_thread = NULL; -#endif return ret; } @@ -290,9 +287,6 @@ APR_DECLARE(void) apr_thread_exit(apr_thread_t *thd, if (thd->detached) { apr_pool_destroy(thd->pool); } -#ifdef APR_HAS_THREAD_LOCAL - current_thread = NULL; -#endif pthread_exit(NULL); } |