summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorMladen Turk <mturk@apache.org>2021-12-02 21:21:18 +0000
committerMladen Turk <mturk@apache.org>2021-12-02 21:21:18 +0000
commit6487330c38e3c0430782a5ceca674b94398f347f (patch)
treeededff55d7051624a164926ea86ad603d6776026 /threadproc
parent2520ce23f2830c59cfc2786effbbe72903c49ad5 (diff)
downloadapr-6487330c38e3c0430782a5ceca674b94398f347f.tar.gz
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
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/win32/thread.c13
1 files changed, 0 insertions, 13 deletions
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,