From 7e2a7b5d955c76f4e0c512eb563cfa987b8a0fa0 Mon Sep 17 00:00:00 2001 From: Ivan Zhakov Date: Tue, 28 May 2019 08:15:57 +0000 Subject: * 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 --- locks/win32/thread_mutex.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'locks') 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, -- cgit v1.2.1