src/thread/SDL_thread.c
changeset 5509 5b1b4d820d10
parent 5506 82a09d5d0f07
child 5535 96594ac5fd1a
equal deleted inserted replaced
5508:60b63c32f06d 5509:5b1b4d820d10
   293     }
   293     }
   294     return id;
   294     return id;
   295 }
   295 }
   296 
   296 
   297 int
   297 int
   298 SDL_SetThreadPriority(SDL_Thread * thread, SDL_ThreadPriority priority)
   298 SDL_SetThreadPriority(SDL_ThreadPriority priority)
   299 {
   299 {
   300     if (!thread) {
   300     return SDL_SYS_SetThreadPriority(priority);
   301         SDL_SetError("SDL_SetThreadPriority() passed NULL thread");
       
   302         return -1;
       
   303     }
       
   304     return SDL_SYS_SetThreadPriority(thread, priority);
       
   305 }
   301 }
   306 
   302 
   307 void
   303 void
   308 SDL_WaitThread(SDL_Thread * thread, int *status)
   304 SDL_WaitThread(SDL_Thread * thread, int *status)
   309 {
   305 {