Changeset 4cd4bb9d26b0c6a4569f599bc300d84017cddc61

Show
Ignore:
Timestamp:
05/23/07 16:48:08 (1 year ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1179931688 +0000
git-parent:

[5d57f84d59384a68cfbcdb7eb10075240ee544b0]

git-author:
Damien Fouilleul <damienf@videolan.org> 1179931688 +0000
Message:

- win32: retire --fast-mutex and --win-cv-method completely

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc-module.c

    r340bf4e r4cd4bb9  
    923923    "all the processor time and render the whole system unresponsive which " \ 
    924924    "might require a reboot of your machine.") 
    925  
    926 #define FAST_MUTEX_TEXT N_("Fast mutex on NT/2K/XP (developers only)") 
    927 #define FAST_MUTEX_LONGTEXT N_( \ 
    928     "On Windows NT/2K/XP we use a slow mutex implementation but which " \ 
    929     "allows us to correctly implement condition variables. " \ 
    930     "You can also use the faster Win9x implementation but you might " \ 
    931     "experience problems with it.") 
    932  
    933 #define WIN9X_CV_TEXT N_("Condition variables implementation for Win9x " \ 
    934     "(developers only)") 
    935 #define WIN9X_CV_LONGTEXT N_( \ 
    936     "On Windows 9x/Me you can use a fast but incorrect condition variables " \ 
    937     "implementation (more precisely there is a possibility for a race " \ 
    938     "condition to happen). " \ 
    939     "However it is possible to use slower alternatives which are more " \ 
    940     "robust. " \ 
    941     "Currently you can choose between implementation 0 (which is the " \ 
    942     "fastest but slightly incorrect), 1 (default) and 2.") 
    943925 
    944926#define PLAYLISTENQUEUE_TEXT N_( \ 
     
    16691651    add_bool( "high-priority", 0, NULL, HPRIORITY_TEXT, 
    16701652              HPRIORITY_LONGTEXT, VLC_FALSE ); 
    1671         change_need_restart(); 
    1672     add_bool( "fast-mutex", 0, NULL, FAST_MUTEX_TEXT, 
    1673               FAST_MUTEX_LONGTEXT, VLC_TRUE ); 
    1674         change_need_restart(); 
    1675     add_integer( "win9x-cv-method", 1, NULL, WIN9X_CV_TEXT, 
    1676                   WIN9X_CV_LONGTEXT, VLC_TRUE ); 
    16771653        change_need_restart(); 
    16781654#endif 
  • src/misc/threads.c

    r93dacf0 r4cd4bb9  
    4646#elif defined( UNDER_CE ) 
    4747#elif defined( WIN32 ) 
     48 
     49/* following is only available on NT/2000/XP and above */ 
    4850static SIGNALOBJECTANDWAIT pf_SignalObjectAndWait = NULL; 
    49 static vlc_bool_t          b_fast_mutex = 0; 
    50 static int                 i_win9x_cv = 0; 
     51 
     52/* 
     53** On Windows NT/2K/XP we use a slow mutex implementation but which 
     54** allows us to correctly implement condition variables. 
     55** You can also use the faster Win9x implementation but you might 
     56** experience problems with it. 
     57*/ 
     58static vlc_bool_t          b_fast_mutex = VLC_FALSE; 
     59/* 
     60** On Windows 9x/Me you can use a fast but incorrect condition variables 
     61** implementation (more precisely there is a possibility for a race 
     62** condition to happen). 
     63** However it is possible to use slower alternatives which are more robust. 
     64** Currently you can choose between implementation 0 (which is the 
     65** fastest but slightly incorrect), 1 (default) and 2. 
     66*/ 
     67static int i_win9x_cv = 1; 
     68 
    5169#elif defined( HAVE_KERNEL_SCHEDULER_H ) 
    5270#elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) 
     
    7795    if( IsDebuggerPresent() ) 
    7896    { 
    79         /* SignalObjectAndWait() API is problematic under a debugger */ 
     97        /* SignalObjectAndWait() is problematic under a debugger */ 
    8098        b_fast_mutex = VLC_TRUE; 
    81         i_win9x_cv = 0; 
    82     } 
    83     else 
    84     { 
    85         b_fast_mutex = VLC_FALSE; 
    8699        i_win9x_cv = 1; 
    87100    }