summaryrefslogtreecommitdiff
path: root/threadproc/beos/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'threadproc/beos/thread.c')
-rw-r--r--threadproc/beos/thread.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/threadproc/beos/thread.c b/threadproc/beos/thread.c
index 501678373..faa255b63 100644
--- a/threadproc/beos/thread.c
+++ b/threadproc/beos/thread.c
@@ -63,7 +63,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)
@@ -81,9 +81,6 @@ static void *dummy_worker(void *opaque)
apr_pool_destroy(thd->pool);
}
-#ifdef APR_HAS_THREAD_LOCAL
- current_thread = NULL;
-#endif
return ret;
}
@@ -212,9 +209,6 @@ APR_DECLARE(void) apr_thread_exit(apr_thread_t *thd, apr_status_t retval)
if (thd->detached) {
apr_pool_destroy(thd->pool);
}
-#ifdef APR_HAS_THREAD_LOCAL
- current_thread = NULL;
-#endif
exit_thread ((status_t)(retval));
}