From b25d6e804e6a8a6297fe50bcf172633f6fc62a65 Mon Sep 17 00:00:00 2001 From: mturk Date: Thu, 2 Dec 2021 21:21:18 +0000 Subject: Stage 3 in dismantling _WIN32_WCE ... cleanup code git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895508 13f79535-47bb-0310-9956-ffa450edef68 --- threadproc/win32/thread.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'threadproc') diff --git a/threadproc/win32/thread.c b/threadproc/win32/thread.c index b5a6f1722..3f9880b6a 100644 --- a/threadproc/win32/thread.c +++ b/threadproc/win32/thread.c @@ -138,21 +138,12 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new, /* Use 0 for default Thread Stack Size, because that will * default the stack to the same size as the calling thread. */ -#ifndef _WIN32_WCE if ((handle = (HANDLE)_beginthreadex(NULL, (DWORD) (attr ? attr->stacksize : 0), (unsigned int (APR_THREAD_FUNC *)(void *))dummy_worker, (*new), 0, &temp)) == 0) { return APR_FROM_OS_ERROR(_doserrno); } -#else - if ((handle = CreateThread(NULL, - attr && attr->stacksize > 0 ? attr->stacksize : 0, - (unsigned int (APR_THREAD_FUNC *)(void *))dummy_worker, - (*new), 0, &temp)) == 0) { - return apr_get_os_error(); - } -#endif if (attr && attr->detach) { CloseHandle(handle); } @@ -169,11 +160,7 @@ APR_DECLARE(void) apr_thread_exit(apr_thread_t *thd, apr_status_t retval) if (!thd->td) { /* detached? */ apr_pool_destroy(thd->pool); } -#ifndef _WIN32_WCE _endthreadex(0); -#else - ExitThread(0); -#endif } APR_DECLARE(apr_status_t) apr_thread_join(apr_status_t *retval, -- cgit v1.2.1