Index: Source/wtf/ThreadingWin.cpp |
diff --git a/Source/wtf/ThreadingWin.cpp b/Source/wtf/ThreadingWin.cpp |
index 49ecc1ae75ec60d27b1f3496619dba66a5f20435..99ebfb3e1a3ba744c7dbb868a6e7374cb3ae517c 100644 |
--- a/Source/wtf/ThreadingWin.cpp |
+++ b/Source/wtf/ThreadingWin.cpp |
@@ -107,9 +107,7 @@ |
#include "ThreadSpecific.h" |
#endif |
-#if !OS(WINCE) |
#include <process.h> |
-#endif |
#if HAVE(ERRNO_H) |
#include <errno.h> |
@@ -228,17 +226,9 @@ ThreadIdentifier createThreadInternal(ThreadFunction entryPoint, void* data, con |
unsigned threadIdentifier = 0; |
ThreadIdentifier threadID = 0; |
OwnPtr<ThreadFunctionInvocation> invocation = adoptPtr(new ThreadFunctionInvocation(entryPoint, data)); |
-#if OS(WINCE) |
- // This is safe on WINCE, since CRT is in the core and innately multithreaded. |
- // On desktop Windows, need to use _beginthreadex (not available on WinCE) if using any CRT functions |
- HANDLE threadHandle = CreateThread(0, 0, (LPTHREAD_START_ROUTINE)wtfThreadEntryPoint, invocation.get(), 0, (LPDWORD)&threadIdentifier); |
-#else |
HANDLE threadHandle = reinterpret_cast<HANDLE>(_beginthreadex(0, 0, wtfThreadEntryPoint, invocation.get(), 0, &threadIdentifier)); |
-#endif |
if (!threadHandle) { |
-#if OS(WINCE) |
- LOG_ERROR("Failed to create thread at entry point %p with data %p: %ld", entryPoint, data, ::GetLastError()); |
-#elif !HAVE(ERRNO_H) |
+#if !HAVE(ERRNO_H) |
LOG_ERROR("Failed to create thread at entry point %p with data %p.", entryPoint, data); |
#else |
LOG_ERROR("Failed to create thread at entry point %p with data %p: %ld", entryPoint, data, errno); |