Mercurial > sdl-ios-xcode
comparison src/thread/SDL_systhread.h @ 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 | 9fb0eee04dd9 |
children | 4da1ee79c9af |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
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: */ |