diff options
author | Yann Ylavic <ylavic@apache.org> | 2022-01-25 10:53:28 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2022-01-25 10:53:28 +0000 |
commit | 05023098b8283a21bf1c5229db6c6c73c6407a0e (patch) | |
tree | 4b53bdc1e48f97e277ccbaf1fd8461150cfa4eba /threadproc/os2 | |
parent | 367a9c3c50b18fccf2ca899fc1ea01a221928673 (diff) | |
download | apr-05023098b8283a21bf1c5229db6c6c73c6407a0e.tar.gz |
apr_thread: Follow up to r1897207: Make APR_HAS_THREAD_LOCAL a boolean..
.. rather than a defined().
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1897447 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2')
-rw-r--r-- | threadproc/os2/thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/threadproc/os2/thread.c b/threadproc/os2/thread.c index 3c590a6dc..d23be9aed 100644 --- a/threadproc/os2/thread.c +++ b/threadproc/os2/thread.c @@ -68,13 +68,13 @@ 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 static void dummy_worker(void *opaque) { -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL current_thread = thread; #endif @@ -181,7 +181,7 @@ APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current, (*current)->tid = apr_os_thread_current(); -#ifdef APR_HAS_THREAD_LOCAL +#if APR_HAS_THREAD_LOCAL current_thread = *current; #endif return APR_SUCCESS; @@ -189,7 +189,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; |