comparison src/thread/SDL_systhread.h @ 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 9fb0eee04dd9
children 4436464c4f51
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
31 /* This function creates a thread, passing args to SDL_RunThread(), 31 /* This function creates a thread, passing args to SDL_RunThread(),
32 saves a system-dependent thread id in thread->id, and returns 0 32 saves a system-dependent thread id in thread->id, and returns 0
33 on success. 33 on success.
34 */ 34 */
35 #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD 35 #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
36 extern int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); 36 extern int SDL_SYS_CreateThread(SDL_Thread * thread, void *args,
37 pfnSDL_CurrentBeginThread pfnBeginThread,
38 pfnSDL_CurrentEndThread pfnEndThread);
37 #else 39 #else
38 extern int SDL_SYS_CreateThread(SDL_Thread *thread, void *args); 40 extern int SDL_SYS_CreateThread(SDL_Thread * thread, void *args);
39 #endif 41 #endif
40 42
41 /* This function does any necessary setup in the child thread */ 43 /* This function does any necessary setup in the child thread */
42 extern void SDL_SYS_SetupThread(void); 44 extern void SDL_SYS_SetupThread(void);
43 45
44 /* This function waits for the thread to finish and frees any data 46 /* This function waits for the thread to finish and frees any data
45 allocated by SDL_SYS_CreateThread() 47 allocated by SDL_SYS_CreateThread()
46 */ 48 */
47 extern void SDL_SYS_WaitThread(SDL_Thread *thread); 49 extern void SDL_SYS_WaitThread(SDL_Thread * thread);
48 50
49 /* This function kills the thread and returns */ 51 /* This function kills the thread and returns */
50 extern void SDL_SYS_KillThread(SDL_Thread *thread); 52 extern void SDL_SYS_KillThread(SDL_Thread * thread);
51 53
52 #endif /* _SDL_systhread_h */ 54 #endif /* _SDL_systhread_h */
55 /* vi: set ts=4 sw=4 expandtab: */