Commit c29c0018 authored by David Reid's avatar David Reid

Fix an error where the pthread priority is not being set correctly.

parent ee3b7df6
...@@ -16158,8 +16158,10 @@ static ma_result ma_thread_create__posix(ma_thread* pThread, ma_thread_priority ...@@ -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. */ /* I'm not treating a failure of setting the priority as a critical error so not aborting on failure here. */
pthread_attr_setschedparam(&attr, &sched); if (pthread_attr_setschedparam(&attr, &sched) == 0) {
pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
}
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment