Windows XP compat
This commit is contained in:
@@ -663,7 +663,7 @@ PortAudioBackend::portaudio_process_thread (void *arg)
|
||||
mmcss::set_thread_priority (task_handle, mmcss::AVRT_PRIORITY_NORMAL);
|
||||
#endif
|
||||
|
||||
DWORD tid = GetThreadId (GetCurrentThread ());
|
||||
DWORD tid = GetCurrentThreadId ();
|
||||
DEBUG_THREADS (string_compose ("Process Thread Child ID: %1\n", tid));
|
||||
|
||||
f ();
|
||||
@@ -1350,7 +1350,7 @@ PortAudioBackend::main_process_thread ()
|
||||
mmcss::set_thread_priority (task_handle, mmcss::AVRT_PRIORITY_NORMAL);
|
||||
#endif
|
||||
|
||||
DWORD tid = GetThreadId (GetCurrentThread ());
|
||||
DWORD tid = GetCurrentThreadId ();
|
||||
DEBUG_THREADS (string_compose ("Process Thread Master ID: %1\n", tid));
|
||||
|
||||
while (_run) {
|
||||
|
||||
@@ -182,6 +182,7 @@ WinMMEMidiInputDevice::winmm_input_callback(HMIDIIN handle,
|
||||
static HANDLE input_thread = GetCurrentThread ();
|
||||
static bool priority_boosted = false;
|
||||
|
||||
#if 0 // GetThreadId() is Vista or later only.
|
||||
if (input_thread != GetCurrentThread ()) {
|
||||
DWORD otid = GetThreadId (input_thread);
|
||||
DWORD ntid = GetThreadId (GetCurrentThread ());
|
||||
@@ -191,6 +192,7 @@ WinMMEMidiInputDevice::winmm_input_callback(HMIDIIN handle,
|
||||
DEBUG_THREADS (string_compose (
|
||||
"WinMME input Thread ID Changed: was %1, now %2\n", otid, ntid));
|
||||
}
|
||||
#endif
|
||||
|
||||
HANDLE task_handle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user