[vlc-commits] win32: thread: use INFINITE define with WaitOnAddress

Steve Lhomme git at videolan.org
Mon Aug 17 16:14:28 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Aug 12 08:42:19 2020 +0200| [2e6cc1d4ba836e4eece1a5788871d4b97f2196e3] | committer: Steve Lhomme

win32: thread: use INFINITE define with WaitOnAddress

Rather than a hardcoded -1 value.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e6cc1d4ba836e4eece1a5788871d4b97f2196e3
---

 src/win32/thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/win32/thread.c b/src/win32/thread.c
index 2113f33d3f..77e4b27d4f 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -275,7 +275,7 @@ static void WINAPI WakeByAddressFallback(void *addr)
 
 void vlc_atomic_wait(void *addr, unsigned val)
 {
-    WaitOnAddress(addr, &val, sizeof (val), -1);
+    WaitOnAddress(addr, &val, sizeof (val), INFINITE);
 }
 
 int vlc_atomic_timedwait(void *addr, unsigned val, vlc_tick_t deadline)



More information about the vlc-commits mailing list