[vlc-devel] [PATCH 1/2] win32: thread: use INFINITE define with WaitOnAddress
Steve Lhomme
robux4 at ycbcr.xyz
Thu Aug 13 14:10:59 CEST 2020
Rather than a hardcoded -1 value.
---
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 2113f33d3ff..77e4b27d4f5 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)
--
2.26.2
More information about the vlc-devel
mailing list