summaryrefslogtreecommitdiff
path: root/threadproc/win32/thread.c
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-01-25 10:41:15 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2022-01-25 10:41:15 +0000
commit9743a87cfb23e720a49f519a5882bdd4bed7b87b (patch)
tree6921a3df72d4aa456c518f84ba06ca17e8e4b7ae /threadproc/win32/thread.c
parent0a395254577c9b47ac436bd0503a161c7fcc0718 (diff)
downloadlibapr-9743a87cfb23e720a49f519a5882bdd4bed7b87b.tar.gz
apr_thread: Follow up to r1897207: Don't NULLify current_thread on exit.
It's not needed, when the thread exits it's not accessible anyway. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1897445 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/win32/thread.c')
-rw-r--r--threadproc/win32/thread.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/threadproc/win32/thread.c b/threadproc/win32/thread.c
index 281a44ac6..ee2070bc8 100644
--- a/threadproc/win32/thread.c
+++ b/threadproc/win32/thread.c
@@ -73,7 +73,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)
@@ -92,9 +92,6 @@ static void *dummy_worker(void *opaque)
apr_pool_destroy(thd->pool);
}
-#ifdef APR_HAS_THREAD_LOCAL
- current_thread = NULL;
-#endif
return ret;
}