mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2025-03-05 03:19:50 +00:00
windows: attempt high priority only when asked for it
This commit is contained in:
parent
f57f691068
commit
1738edeaf9
|
@ -210,8 +210,10 @@ int soundio_os_thread_create(
|
||||||
soundio_os_thread_destroy(thread);
|
soundio_os_thread_destroy(thread);
|
||||||
return SoundIoErrorSystemResources;
|
return SoundIoErrorSystemResources;
|
||||||
}
|
}
|
||||||
if (!SetThreadPriority(thread->handle, THREAD_PRIORITY_TIME_CRITICAL)) {
|
if (high_priority) {
|
||||||
win32_panic("unable to set high priority thread: %s"); // TODO don't panic
|
if (!SetThreadPriority(thread->handle, THREAD_PRIORITY_TIME_CRITICAL)) {
|
||||||
|
win32_panic("unable to set high priority thread: %s"); // TODO don't panic
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int err;
|
int err;
|
||||||
|
|
Loading…
Reference in a new issue