diff options
author | Ivan Zhakov <ivan@apache.org> | 2019-10-22 21:58:27 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2019-10-22 21:58:27 +0000 |
commit | 03d315c10b2b410ea316968c9b88f1c9d8b07575 (patch) | |
tree | baf687470662a322b272f55fe818e615709b80b7 /threadproc | |
parent | 6e4f7ae03f61ef72066e573c6449d649dc32c4fd (diff) | |
download | apr-03d315c10b2b410ea316968c9b88f1c9d8b07575.tar.gz |
* 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
Diffstat (limited to 'threadproc')
-rw-r--r-- | threadproc/win32/thread.c | 11 |
1 files changed, 1 insertions, 10 deletions
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, |