mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix an error where the pthread priority is not being set correctly.
This commit is contained in:
+4
-2
@@ -16158,8 +16158,10 @@ static ma_result ma_thread_create__posix(ma_thread* pThread, ma_thread_priority
|
||||
}
|
||||
}
|
||||
|
||||
/* I'm not treating a failure of setting the priority as a critical error so not checking the return value here. */
|
||||
pthread_attr_setschedparam(&attr, &sched);
|
||||
/* I'm not treating a failure of setting the priority as a critical error so not aborting on failure here. */
|
||||
if (pthread_attr_setschedparam(&attr, &sched) == 0) {
|
||||
pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user