25 #include "JackSystemDeps.h" 26 #include "JackCompilerDeps.h" 33 typedef enum _AVRT_PRIORITY {
34 AVRT_PRIORITY_LOW = -1,
37 AVRT_PRIORITY_CRITICAL
38 } AVRT_PRIORITY, *PAVRT_PRIORITY;
40 #define BASE_REALTIME_PRIORITY 90 42 typedef HANDLE (WINAPI *avSetMmThreadCharacteristics)(LPCTSTR, LPDWORD);
43 typedef BOOL (WINAPI *avRevertMmThreadCharacteristics)(HANDLE);
44 typedef BOOL (WINAPI *avSetMmThreadPriority)(HANDLE, AVRT_PRIORITY);
55 static JACK_HANDLE fAvrtDll;
56 static avSetMmThreadCharacteristics ffMMCSSFun1;
57 static avSetMmThreadPriority ffMMCSSFun2;
58 static avRevertMmThreadCharacteristics ffMMCSSFun3;
59 static std::map<jack_native_thread_t, HANDLE> fHandleTable;
66 static int MMCSSAcquireRealTime(jack_native_thread_t thread,
int priority);
67 static int MMCSSDropRealTime(jack_native_thread_t thread);