diff options
Diffstat (limited to 'threadproc/win32/thread.c')
-rw-r--r-- | threadproc/win32/thread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/threadproc/win32/thread.c b/threadproc/win32/thread.c index 5a7bff929..daeb28db5 100644 --- a/threadproc/win32/thread.c +++ b/threadproc/win32/thread.c @@ -72,7 +72,7 @@ APR_DECLARE(apr_status_t) apr_threadattr_guardsize_set(apr_threadattr_t *attr, return APR_ENOTIMPL; } -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL static APR_THREAD_LOCAL apr_thread_t *current_thread = NULL; #endif @@ -81,7 +81,7 @@ static void *dummy_worker(void *opaque) apr_thread_t *thd = (apr_thread_t *)opaque; void *ret; -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL current_thread = thd; #endif @@ -203,7 +203,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current, (*new)->td = apr_os_thread_current(); } -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL current_thread = *current; #endif return APR_SUCCESS; @@ -211,7 +211,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current, APR_DECLARE(apr_thread_t *) apr_thread_current(void) { -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL return current_thread; #else return NULL; @@ -226,7 +226,7 @@ APR_DECLARE(apr_status_t) apr_thread_exit(apr_thread_t *thd, if (!thd->td) { /* detached? */ apr_pool_destroy(thd->pool); } -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL current_thread = NULL; #endif #ifndef _WIN32_WCE |