Previous 199869 Revisions Next

r31314 Friday 18th July, 2014 at 19:49:19 UTC by hap
AvSetMmThreadCharacteristics and friends, this has been commented out since before 2007
[src/osd/windows]winmain.c

trunk/src/osd/windows/winmain.c
r31313r31314
225225//  LOCAL VARIABLES
226226//**************************************************************************
227227
228//static dynamic_bind<HANDLE (WINAPI *)(LPCTSTR, LPDWORD)> av_set_mm_thread_characteristics(TEXT("avrt.dll"), "AvSetMmThreadCharacteristics" UNICODE_POSTFIX);
229//static dynamic_bind<HANDLE (WINAPI *)(LPCTSTR, LPCTSTR, LPDWORD)> av_set_mm_max_thread_characteristics(TEXT("avrt.dll"), "AvSetMmMaxThreadCharacteristics" UNICODE_POSTFIX);
230//static dynamic_bind<BOOL (WINAPI *)(HANDLE)> av_revert_mm_thread_characteristics(TEXT("avrt.dll"), "AvRevertMmThreadCharacteristics");
231
232
233228static LPTOP_LEVEL_EXCEPTION_FILTER pass_thru_filter;
234229
235230static HANDLE watchdog_reset_event;
r31313r31314
238233
239234static running_machine *g_current_machine;
240235
241//static HANDLE mm_task = NULL;
242//static DWORD task_index = 0;
243236static int timeresult = !TIMERR_NOERROR;
244//static MMRESULT result;
245237static TIMECAPS timecaps;
246238
247239static sampling_profiler *profiler = NULL;
r31313r31314
654646         timeBeginPeriod(timecaps.wPeriodMin);
655647   }
656648
657   // set our multimedia tasks if we can
658//      if (av_set_mm_thread_characteristics != NULL)
659//          mm_task = (*av_set_mm_thread_characteristics)(TEXT("Playback"), &task_index);
660
661649   // if a watchdog thread is requested, create one
662650   int watchdog = options.watchdog();
663651   if (watchdog != 0)
r31313r31314
720708      global_free(profiler);
721709   }
722710
723   // turn off our multimedia tasks
724//      if (av_revert_mm_thread_characteristics)
725//          (*av_revert_mm_thread_characteristics)(mm_task);
726
727711   // restore the timer resolution
728712   if (timeresult == TIMERR_NOERROR)
729713      timeEndPeriod(timecaps.wPeriodMin);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team