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, |
36 extern int SDL_SYS_CreateThread(SDL_Thread * thread, void *args, |
37 pfnSDL_CurrentBeginThread pfnBeginThread, |
37 pfnSDL_CurrentBeginThread pfnBeginThread, |
38 pfnSDL_CurrentEndThread pfnEndThread); |
38 pfnSDL_CurrentEndThread pfnEndThread); |
39 #else |
39 #else |
40 extern int SDL_SYS_CreateThread (SDL_Thread * thread, void *args); |
40 extern int SDL_SYS_CreateThread(SDL_Thread * thread, void *args); |
41 #endif |
41 #endif |
42 |
42 |
43 /* This function does any necessary setup in the child thread */ |
43 /* This function does any necessary setup in the child thread */ |
44 extern void SDL_SYS_SetupThread (void); |
44 extern void SDL_SYS_SetupThread(void); |
45 |
45 |
46 /* 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 |
47 allocated by SDL_SYS_CreateThread() |
47 allocated by SDL_SYS_CreateThread() |
48 */ |
48 */ |
49 extern void SDL_SYS_WaitThread (SDL_Thread * thread); |
49 extern void SDL_SYS_WaitThread(SDL_Thread * thread); |
50 |
50 |
51 /* This function kills the thread and returns */ |
51 /* This function kills the thread and returns */ |
52 extern void SDL_SYS_KillThread (SDL_Thread * thread); |
52 extern void SDL_SYS_KillThread(SDL_Thread * thread); |
53 |
53 |
54 #endif /* _SDL_systhread_h */ |
54 #endif /* _SDL_systhread_h */ |
55 /* vi: set ts=4 sw=4 expandtab: */ |
55 /* vi: set ts=4 sw=4 expandtab: */ |