src/thread/SDL_thread.c
changeset 5506 82a09d5d0f07
parent 5425 346f095568ab
child 5509 5b1b4d820d10
--- a/src/thread/SDL_thread.c	Fri Mar 25 10:26:25 2011 -0700
+++ b/src/thread/SDL_thread.c	Fri Mar 25 10:47:49 2011 -0700
@@ -281,6 +281,29 @@
     return (thread);
 }
 
+SDL_threadID
+SDL_GetThreadID(SDL_Thread * thread)
+{
+    SDL_threadID id;
+
+    if (thread) {
+        id = thread->threadid;
+    } else {
+        id = SDL_ThreadID();
+    }
+    return id;
+}
+
+int
+SDL_SetThreadPriority(SDL_Thread * thread, SDL_ThreadPriority priority)
+{
+    if (!thread) {
+        SDL_SetError("SDL_SetThreadPriority() passed NULL thread");
+        return -1;
+    }
+    return SDL_SYS_SetThreadPriority(thread, priority);
+}
+
 void
 SDL_WaitThread(SDL_Thread * thread, int *status)
 {
@@ -294,17 +317,4 @@
     }
 }
 
-SDL_threadID
-SDL_GetThreadID(SDL_Thread * thread)
-{
-    SDL_threadID id;
-
-    if (thread) {
-        id = thread->threadid;
-    } else {
-        id = SDL_ThreadID();
-    }
-    return id;
-}
-
 /* vi: set ts=4 sw=4 expandtab: */