* This header provides a portable threads implementation.
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
- * $Id: threads.h,v 1.25 2001/10/01 12:48:01 massiot Exp $
+ * $Id: threads.h,v 1.26 2001/11/14 00:01:36 jlj Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
&& p_condvar->i_waiting_threads == i_waiting_threads )
{
PulseEvent( p_condvar->signal );
- Sleep( 1 ); /* deschedule the current thread */
+ Sleep( 0 ); /* deschedule the current thread */
}
return 0;
while( p_condvar->i_waiting_threads )
{
PulseEvent( p_condvar->signal );
- Sleep( 1 ); /* deschedule the current thread */
+ Sleep( 0 ); /* deschedule the current thread */
}
return 0;
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: main.c,v 1.124 2001/11/12 22:42:56 sam Exp $
+ * $Id: main.c,v 1.125 2001/11/14 00:01:36 jlj Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
#if defined( SYS_BEOS ) || defined( SYS_DARWIN ) || defined( WIN32 )
system_Init( &i_argc, ppsz_argv, ppsz_env );
-#elif defined( WIN32 )
- _fmode = _O_BINARY; /* sets the default file-translation mode on Win32 */
-
#elif defined( SYS_LINUX )
# ifdef DEBUG
/* Activate malloc checking routines to detect heap corruptions. */
* win32_specific.c: Win32 specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: win32_specific.c,v 1.1 2001/11/12 22:42:56 sam Exp $
+ * $Id: win32_specific.c,v 1.2 2001/11/14 00:01:36 jlj Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
#include <string.h> /* strdup() */
#include <stdlib.h> /* free() */
+#include <fcntl.h>
#include <winsock2.h>
{
fprintf( stderr, "error: can't initiate WinSocks, error %i", i_err );
}
+
+ _fmode = _O_BINARY; /* sets the default file-translation mode */
}
/*****************************************************************************