summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorivan <ivan@13f79535-47bb-0310-9956-ffa450edef68>2019-10-22 21:58:27 +0000
committerivan <ivan@13f79535-47bb-0310-9956-ffa450edef68>2019-10-22 21:58:27 +0000
commit4c77b345572be11a0b66c4ee377560a3e54fa54a (patch)
treebaf687470662a322b272f55fe818e615709b80b7 /threadproc
parent2b76b906aed90e6b4a50442e61542c64fb8b1c38 (diff)
downloadlibapr-4c77b345572be11a0b66c4ee377560a3e54fa54a.tar.gz
* threadproc/win32/thread.c
(apr_thread_yield): Remove Windows CE and Win9x compatibility code. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1868774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/win32/thread.c11
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,