[vlc-devel] [PATCH 2/3] Win32: use WaitForSingleObjectEx instead of WaitForSingleObject

Rémi Denis-Courmont remi at remlab.net
Tue Jan 8 14:32:25 CET 2013


Still totally pointless.

On Tue,  8 Jan 2013 14:08:39 +0100, Jean-Baptiste Kempf <jb at videolan.org>
wrote:
> ---
>  src/win32/specific.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/win32/specific.c b/src/win32/specific.c
> index 2ec409c..a77668c 100644
> --- a/src/win32/specific.c
> +++ b/src/win32/specific.c
> @@ -126,7 +126,7 @@ void system_Configure( libvlc_int_t *p_this, int
> i_argc, const char *const ppsz_
>              hIPCHelper = _beginthreadex( NULL, 0, IPCHelperThread,
>              p_helper,
>                                           0, NULL );
>              if( hIPCHelper )
> -                WaitForSingleObject( hIPCHelperReady, INFINITE );
> +                WaitForSingleObjectEx( hIPCHelperReady, INFINITE, FALSE
);
>              else
>              {
>                  msg_Err( p_this, "one instance mode DISABLED "
> @@ -147,7 +147,7 @@ void system_Configure( libvlc_int_t *p_this, int
> i_argc, const char *const ppsz_
>              HWND ipcwindow;
>  
>              /* Wait until the 1st instance is initialized */
> -            WaitForSingleObject( hmutex, INFINITE );
> +            WaitForSingleObjectEx( hmutex, INFINITE, FALSE );
>  
>              /* Locate the window created by the IPC helper thread of
the
>               * 1st instance */

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list