From 1963c020eafdd1f01aefcfbd272f3048ecd4959a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Fri, 18 Jul 2014 19:49:19 +0000 Subject: [PATCH] AvSetMmThreadCharacteristics and friends, this has been commented out since before 2007 --- src/osd/windows/winmain.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c index c6e4f549c6e..3f2dfed095b 100644 --- a/src/osd/windows/winmain.c +++ b/src/osd/windows/winmain.c @@ -225,11 +225,6 @@ int _CRT_glob = 0; // LOCAL VARIABLES //************************************************************************** -//static dynamic_bind av_set_mm_thread_characteristics(TEXT("avrt.dll"), "AvSetMmThreadCharacteristics" UNICODE_POSTFIX); -//static dynamic_bind av_set_mm_max_thread_characteristics(TEXT("avrt.dll"), "AvSetMmMaxThreadCharacteristics" UNICODE_POSTFIX); -//static dynamic_bind 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);