[Commits] SDL: windows: Use WaitForSingleObjectEx() always

libsdl.org revision control commits-owner at libsdl.org
Sun Dec 31 00:37:04 PST 2017


details:   https://hg.libsdl.org/SDL/rev/c40f03dda342
changeset: 11794:c40f03dda342
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Sun Dec 31 03:35:41 2017 -0500
description:
windows: Use WaitForSingleObjectEx() always

This is available since Windows XP, so it's safe to use always, not just in
a WinRT ifdef.

diffstat:

 src/thread/windows/SDL_syssem.c |  4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diffs (15 lines):

diff -r 3ec030c1ca8e -r c40f03dda342 src/thread/windows/SDL_syssem.c
--- a/src/thread/windows/SDL_syssem.c	Sun Dec 31 03:34:16 2017 -0500
+++ b/src/thread/windows/SDL_syssem.c	Sun Dec 31 03:35:41 2017 -0500
@@ -90,11 +90,7 @@
     } else {
         dwMilliseconds = (DWORD) timeout;
     }
-#if __WINRT__
     switch (WaitForSingleObjectEx(sem->id, dwMilliseconds, FALSE)) {
-#else
-    switch (WaitForSingleObject(sem->id, dwMilliseconds)) {
-#endif
     case WAIT_OBJECT_0:
         InterlockedDecrement(&sem->count);
         retval = 0;


More information about the commits mailing list