diff options
author | Ivan Zhakov <ivan@apache.org> | 2019-05-28 08:15:57 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2019-05-28 08:15:57 +0000 |
commit | 7e2a7b5d955c76f4e0c512eb563cfa987b8a0fa0 (patch) | |
tree | 81bc391a790f24f335bb322af35364db622e528b /locks | |
parent | e758bfc783c5a222c48aee5c7762dbd5392516a2 (diff) | |
download | apr-7e2a7b5d955c76f4e0c512eb563cfa987b8a0fa0.tar.gz |
* locks/win32/thread_mutex.c
(apr_thread_mutex_create): Remove Windows 9x compatibility code.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860195 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r-- | locks/win32/thread_mutex.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/locks/win32/thread_mutex.c b/locks/win32/thread_mutex.c index 165e34c22..fec04ab51 100644 --- a/locks/win32/thread_mutex.c +++ b/locks/win32/thread_mutex.c @@ -59,24 +59,11 @@ APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex, (*mutex)->handle = CreateMutex(NULL, FALSE, NULL); } else { -#if APR_HAS_UNICODE_FS /* Critical Sections are terrific, performance-wise, on NT. - * On Win9x, we cannot 'try' on a critical section, so we - * use a [slower] mutex object, instead. */ - IF_WIN_OS_IS_UNICODE { - InitializeCriticalSection(&(*mutex)->section); - (*mutex)->type = thread_mutex_critical_section; - (*mutex)->handle = NULL; - } -#endif -#if APR_HAS_ANSI_FS - ELSE_WIN_OS_IS_ANSI { - (*mutex)->type = thread_mutex_nested_mutex; - (*mutex)->handle = CreateMutex(NULL, FALSE, NULL); - - } -#endif + InitializeCriticalSection(&(*mutex)->section); + (*mutex)->type = thread_mutex_critical_section; + (*mutex)->handle = NULL; } apr_pool_cleanup_register((*mutex)->pool, (*mutex), thread_mutex_cleanup, |