diff src/thread/dc/SDL_systhread.c @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents 11134dc42da8
children 4da1ee79c9af
line wrap: on
line diff
--- a/src/thread/dc/SDL_systhread.c	Sun May 21 17:27:13 2006 +0000
+++ b/src/thread/dc/SDL_systhread.c	Sun May 28 13:04:16 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: */