From 03d315c10b2b410ea316968c9b88f1c9d8b07575 Mon Sep 17 00:00:00 2001 From: Ivan Zhakov Date: Tue, 22 Oct 2019 21:58:27 +0000 Subject: * threadproc/win32/thread.c (apr_thread_yield): Remove Windows CE and Win9x compatibility code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1868774 13f79535-47bb-0310-9956-ffa450edef68 --- threadproc/win32/thread.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'threadproc') diff --git a/threadproc/win32/thread.c b/threadproc/win32/thread.c index aa045df39..429ac2aac 100644 --- a/threadproc/win32/thread.c +++ b/threadproc/win32/thread.c @@ -184,16 +184,7 @@ APR_DECLARE(apr_status_t) apr_thread_detach(apr_thread_t *thd) APR_DECLARE(void) apr_thread_yield() { - /* SwitchToThread is not supported on Win9x, but since it's - * primarily a noop (entering time consuming code, therefore - * providing more critical threads a bit larger timeslice) - * we won't worry too much if it's not available. - */ -#ifndef _WIN32_WCE - if (apr_os_level >= APR_WIN_NT) { - SwitchToThread(); - } -#endif + SwitchToThread(); } APR_DECLARE(apr_status_t) apr_thread_data_get(void **data, const char *key, -- cgit v1.2.1