src/thread/SDL_systhread.h
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1471 9fb0eee04dd9
child 1668 4da1ee79c9af
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: */