coreaudio: Set audio callback thread priority.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 25 Mar 2019 12:59:30 -0400
changeset 12671a7b99312d9f3
parent 12670 dcb6c57df2fc
child 12672 d5b4d374a312
coreaudio: Set audio callback thread priority.

Fixes Bugzilla #4155.
src/audio/coreaudio/SDL_coreaudio.m
     1.1 --- a/src/audio/coreaudio/SDL_coreaudio.m	Mon Mar 25 12:24:38 2019 -0400
     1.2 +++ b/src/audio/coreaudio/SDL_coreaudio.m	Mon Mar 25 12:59:30 2019 -0400
     1.3 @@ -728,6 +728,8 @@
     1.4          return 0;
     1.5      }
     1.6  
     1.7 +    SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
     1.8 +
     1.9      /* init was successful, alert parent thread and start running... */
    1.10      SDL_SemPost(this->hidden->ready_semaphore);
    1.11      while (!SDL_AtomicGet(&this->hidden->shutdown)) {