AvSetMmThreadCharacteristics and friends, this has been commented out since before 2007

This commit is contained in:
Michaël Banaan Ananas 2014-07-18 19:49:19 +00:00
parent 307c7aeeef
commit 1963c020ea

View File

@ -225,11 +225,6 @@ int _CRT_glob = 0;
// 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 HANDLE watchdog_reset_event;
@ -238,10 +233,7 @@ static HANDLE watchdog_thread;
static running_machine *g_current_machine;
//static HANDLE mm_task = NULL;
//static DWORD task_index = 0;
static int timeresult = !TIMERR_NOERROR;
//static MMRESULT result;
static TIMECAPS timecaps;
static sampling_profiler *profiler = NULL;
@ -654,10 +646,6 @@ void windows_osd_interface::init(running_machine &machine)
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
int watchdog = options.watchdog();
if (watchdog != 0)
@ -720,10 +708,6 @@ void windows_osd_interface::osd_exit()
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
if (timeresult == TIMERR_NOERROR)
timeEndPeriod(timecaps.wPeriodMin);