coreaudio: Set audio callback thread priority.

Fixes Bugzilla #4155.
This commit is contained in:
Ryan C. Gordon 2019-03-25 12:59:30 -04:00
parent 6a3356ab3f
commit 2fbfe8b912

View File

@ -728,6 +728,8 @@ audioqueue_thread(void *arg)
return 0;
}
SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
/* init was successful, alert parent thread and start running... */
SDL_SemPost(this->hidden->ready_semaphore);
while (!SDL_AtomicGet(&this->hidden->shutdown)) {