Changeset 4cd4bb9d26b0c6a4569f599bc300d84017cddc61
- 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
| r340bf4e |
r4cd4bb9 |
|
| 923 | 923 | "all the processor time and render the whole system unresponsive which " \ |
|---|
| 924 | 924 | "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.") |
|---|
| 943 | 925 | |
|---|
| 944 | 926 | #define PLAYLISTENQUEUE_TEXT N_( \ |
|---|
| … | … | |
| 1669 | 1651 | add_bool( "high-priority", 0, NULL, HPRIORITY_TEXT, |
|---|
| 1670 | 1652 | 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 ); |
|---|
| 1677 | 1653 | change_need_restart(); |
|---|
| 1678 | 1654 | #endif |
|---|
| r93dacf0 |
r4cd4bb9 |
|
| 46 | 46 | #elif defined( UNDER_CE ) |
|---|
| 47 | 47 | #elif defined( WIN32 ) |
|---|
| | 48 | |
|---|
| | 49 | /* following is only available on NT/2000/XP and above */ |
|---|
| 48 | 50 | static 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 | */ |
|---|
| | 58 | static 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 | */ |
|---|
| | 67 | static int i_win9x_cv = 1; |
|---|
| | 68 | |
|---|
| 51 | 69 | #elif defined( HAVE_KERNEL_SCHEDULER_H ) |
|---|
| 52 | 70 | #elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) |
|---|
| … | … | |
| 77 | 95 | if( IsDebuggerPresent() ) |
|---|
| 78 | 96 | { |
|---|
| 79 | | /* SignalObjectAndWait() API is problematic under a debugger */ |
|---|
| | 97 | /* SignalObjectAndWait() is problematic under a debugger */ |
|---|
| 80 | 98 | b_fast_mutex = VLC_TRUE; |
|---|
| 81 | | i_win9x_cv = 0; |
|---|
| 82 | | } |
|---|
| 83 | | else |
|---|
| 84 | | { |
|---|
| 85 | | b_fast_mutex = VLC_FALSE; |
|---|
| 86 | 99 | i_win9x_cv = 1; |
|---|
| 87 | 100 | } |
|---|