AvSetMmThreadCharacteristics and friends, this has been commented out since before 2007
This commit is contained in:
parent
307c7aeeef
commit
1963c020ea
@ -225,11 +225,6 @@ int _CRT_glob = 0;
|
|||||||
// LOCAL VARIABLES
|
// LOCAL VARIABLES
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
|
|
||||||
//static dynamic_bind<HANDLE (WINAPI *)(LPCTSTR, LPDWORD)> av_set_mm_thread_characteristics(TEXT("avrt.dll"), "AvSetMmThreadCharacteristics" UNICODE_POSTFIX);
|
|
||||||
//static dynamic_bind<HANDLE (WINAPI *)(LPCTSTR, LPCTSTR, LPDWORD)> av_set_mm_max_thread_characteristics(TEXT("avrt.dll"), "AvSetMmMaxThreadCharacteristics" UNICODE_POSTFIX);
|
|
||||||
//static dynamic_bind<BOOL (WINAPI *)(HANDLE)> av_revert_mm_thread_characteristics(TEXT("avrt.dll"), "AvRevertMmThreadCharacteristics");
|
|
||||||
|
|
||||||
|
|
||||||
static LPTOP_LEVEL_EXCEPTION_FILTER pass_thru_filter;
|
static LPTOP_LEVEL_EXCEPTION_FILTER pass_thru_filter;
|
||||||
|
|
||||||
static HANDLE watchdog_reset_event;
|
static HANDLE watchdog_reset_event;
|
||||||
@ -238,10 +233,7 @@ static HANDLE watchdog_thread;
|
|||||||
|
|
||||||
static running_machine *g_current_machine;
|
static running_machine *g_current_machine;
|
||||||
|
|
||||||
//static HANDLE mm_task = NULL;
|
|
||||||
//static DWORD task_index = 0;
|
|
||||||
static int timeresult = !TIMERR_NOERROR;
|
static int timeresult = !TIMERR_NOERROR;
|
||||||
//static MMRESULT result;
|
|
||||||
static TIMECAPS timecaps;
|
static TIMECAPS timecaps;
|
||||||
|
|
||||||
static sampling_profiler *profiler = NULL;
|
static sampling_profiler *profiler = NULL;
|
||||||
@ -654,10 +646,6 @@ void windows_osd_interface::init(running_machine &machine)
|
|||||||
timeBeginPeriod(timecaps.wPeriodMin);
|
timeBeginPeriod(timecaps.wPeriodMin);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set our multimedia tasks if we can
|
|
||||||
// if (av_set_mm_thread_characteristics != NULL)
|
|
||||||
// mm_task = (*av_set_mm_thread_characteristics)(TEXT("Playback"), &task_index);
|
|
||||||
|
|
||||||
// if a watchdog thread is requested, create one
|
// if a watchdog thread is requested, create one
|
||||||
int watchdog = options.watchdog();
|
int watchdog = options.watchdog();
|
||||||
if (watchdog != 0)
|
if (watchdog != 0)
|
||||||
@ -720,10 +708,6 @@ void windows_osd_interface::osd_exit()
|
|||||||
global_free(profiler);
|
global_free(profiler);
|
||||||
}
|
}
|
||||||
|
|
||||||
// turn off our multimedia tasks
|
|
||||||
// if (av_revert_mm_thread_characteristics)
|
|
||||||
// (*av_revert_mm_thread_characteristics)(mm_task);
|
|
||||||
|
|
||||||
// restore the timer resolution
|
// restore the timer resolution
|
||||||
if (timeresult == TIMERR_NOERROR)
|
if (timeresult == TIMERR_NOERROR)
|
||||||
timeEndPeriod(timecaps.wPeriodMin);
|
timeEndPeriod(timecaps.wPeriodMin);
|
||||||
|
Loading…
Reference in New Issue
Block a user