diff src/thread/dc/SDL_systhread.c @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents 11134dc42da8
children 4436464c4f51
line wrap: on
line diff
--- a/src/thread/dc/SDL_systhread.c	Thu Jul 06 18:01:37 2006 +0000
+++ b/src/thread/dc/SDL_systhread.c	Mon Jul 10 21:04:37 2006 +0000
@@ -29,32 +29,39 @@
 
 #include <kos/thread.h>
 
-int SDL_SYS_CreateThread(SDL_Thread *thread, void *args)
+int
+SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
 {
-	thread->handle = thd_create(SDL_RunThread,args);
-	if (thread->handle == NULL) {
-		SDL_SetError("Not enough resources to create thread");
-		return(-1);
-	}
-	return(0);
+    thread->handle = thd_create(SDL_RunThread, args);
+    if (thread->handle == NULL) {
+        SDL_SetError("Not enough resources to create thread");
+        return (-1);
+    }
+    return (0);
 }
 
-void SDL_SYS_SetupThread(void)
+void
+SDL_SYS_SetupThread(void)
 {
-	return;
+    return;
 }
 
-Uint32 SDL_ThreadID(void)
+Uint32
+SDL_ThreadID(void)
 {
-	return (Uint32)thd_get_current();
+    return (Uint32) thd_get_current();
 }
 
-void SDL_SYS_WaitThread(SDL_Thread *thread)
+void
+SDL_SYS_WaitThread(SDL_Thread * thread)
 {
-	thd_wait(thread->handle);
+    thd_wait(thread->handle);
 }
 
-void SDL_SYS_KillThread(SDL_Thread *thread)
+void
+SDL_SYS_KillThread(SDL_Thread * thread)
 {
-	thd_destroy(thread->handle);
+    thd_destroy(thread->handle);
 }
+
+/* vi: set ts=4 sw=4 expandtab: */