[vlc-devel] [PATCH 1/2] win32: thread: use INFINITE define with WaitOnAddress

Thomas Guillem thomas at gllm.fr
Fri Aug 14 10:16:28 CEST 2020


Set LGTM

On Thu, Aug 13, 2020, at 14:10, Steve Lhomme wrote:
> 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
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list