mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2025-03-04 23:09:46 +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);
|
||||
return SoundIoErrorSystemResources;
|
||||
}
|
||||
if (!SetThreadPriority(thread->handle, THREAD_PRIORITY_TIME_CRITICAL)) {
|
||||
win32_panic("unable to set high priority thread: %s"); // TODO don't panic
|
||||
if (high_priority) {
|
||||
if (!SetThreadPriority(thread->handle, THREAD_PRIORITY_TIME_CRITICAL)) {
|
||||
win32_panic("unable to set high priority thread: %s"); // TODO don't panic
|
||||
}
|
||||
}
|
||||
#else
|
||||
int err;
|
||||
|
|
Loading…
Reference in a new issue