https://bugs.webkit.org/show_bug.cgi?id=83502
Reviewed by Daniel Bates.
Replace WaitForSingleObjectEx with WaitForSingleObject since
the additonal parameter supported by the extended function
is not used anyway and the function does not exist on WinCE.
* wtf/CMakeLists.txt:
* wtf/PlatformWinCE.cmake:
* wtf/threads/win/BinarySemaphoreWin.cpp:
(WTF::BinarySemaphore::wait):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113657
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2012-04-09 Patrick Gansterer <paroga@webkit.org>
+ Port BinarySemaphoreWin.cpp to WinCE
+ https://bugs.webkit.org/show_bug.cgi?id=83502
+
+ Reviewed by Daniel Bates.
+
+ Replace WaitForSingleObjectEx with WaitForSingleObject since
+ the additonal parameter supported by the extended function
+ is not used anyway and the function does not exist on WinCE.
+
+ * wtf/CMakeLists.txt:
+ * wtf/PlatformWinCE.cmake:
+ * wtf/threads/win/BinarySemaphoreWin.cpp:
+ (WTF::BinarySemaphore::wait):
+
+2012-04-09 Patrick Gansterer <paroga@webkit.org>
+
[CMake] Build fix for USE_SYSTEM_MALLOC after r113570.
* wtf/CMakeLists.txt:
SET(WTF_INCLUDE_DIRECTORIES
"${WTF_DIR}"
"${WTF_DIR}/wtf"
- "${WTF_DIR}/wtf/unicode"
"${WTF_DIR}/wtf/dtoa"
+ "${WTF_DIR}/wtf/threads"
+ "${WTF_DIR}/wtf/unicode"
"${THIRDPARTY_DIR}"
"${CMAKE_BINARY_DIR}"
)
ThreadingWin.cpp
ThreadSpecificWin.cpp
+ threads/win/BinarySemaphoreWin.cpp
+
unicode/CollatorDefault.cpp
unicode/wince/UnicodeWinCE.cpp
return false;
}
- DWORD result = ::WaitForSingleObjectEx(m_event, interval, FALSE);
+ DWORD result = ::WaitForSingleObject(m_event, interval);
switch (result) {
case WAIT_OBJECT_0:
// The event was signaled.
return false;
case WAIT_FAILED:
- ASSERT_WITH_MESSAGE(false, "::WaitForSingleObjectEx failed with error %lu", ::GetLastError());
+ ASSERT_WITH_MESSAGE(false, "::WaitForSingleObject failed with error %lu", ::GetLastError());
return false;
+
default:
- ASSERT_WITH_MESSAGE(false, "::WaitForSingleObjectEx returned unexpected result %lu", result);
+ ASSERT_WITH_MESSAGE(false, "::WaitForSingleObject returned unexpected result %lu", result);
return false;
}
}