summaryrefslogtreecommitdiff
path: root/threadproc/os2/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/os2/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/os2/thread.c')
-rw-r--r--threadproc/os2/thread.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/threadproc/os2/thread.c b/threadproc/os2/thread.c
index bcb3d7b20..3c590a6dc 100644
--- a/threadproc/os2/thread.c
+++ b/threadproc/os2/thread.c
@@ -69,7 +69,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)
@@ -84,10 +84,6 @@ static void dummy_worker(void *opaque)
if (thd->attr->attr & APR_THREADATTR_DETACHED) {
apr_pool_destroy(thread->pool);
}
-
-#ifdef APR_HAS_THREAD_LOCAL
- current_thread = NULL;
-#endif
}
@@ -217,9 +213,6 @@ APR_DECLARE(void) apr_thread_exit(apr_thread_t *thd, apr_status_t retval)
if (thd->attr->attr & APR_THREADATTR_DETACHED) {
apr_pool_destroy(thd->pool);
}
-#ifdef APR_HAS_THREAD_LOCAL
- current_thread = NULL;
-#endif
_endthread();
}