include/SDL_thread.h
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/include/SDL_thread.h	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/include/SDL_thread.h	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -82,21 +82,21 @@
     1.4                                                               *threadID);
     1.5  typedef void (__cdecl * pfnSDL_CurrentEndThread) (unsigned code);
     1.6  #else
     1.7 -typedef uintptr_t (__cdecl * pfnSDL_CurrentBeginThread) (void *, unsigned,
     1.8 -                                                         unsigned (__stdcall *
     1.9 -                                                                   func) (void
    1.10 -                                                                          *),
    1.11 -                                                         void *arg, unsigned,
    1.12 -                                                         unsigned *threadID);
    1.13 +typedef uintptr_t(__cdecl * pfnSDL_CurrentBeginThread) (void *, unsigned,
    1.14 +                                                        unsigned (__stdcall *
    1.15 +                                                                  func) (void
    1.16 +                                                                         *),
    1.17 +                                                        void *arg, unsigned,
    1.18 +                                                        unsigned *threadID);
    1.19  typedef void (__cdecl * pfnSDL_CurrentEndThread) (unsigned code);
    1.20  #endif
    1.21  
    1.22 -extern DECLSPEC SDL_Thread *SDLCALL SDL_CreateThread (int (*fn) (void *),
    1.23 -                                                      void *data,
    1.24 -                                                      pfnSDL_CurrentBeginThread
    1.25 -                                                      pfnBeginThread,
    1.26 -                                                      pfnSDL_CurrentEndThread
    1.27 -                                                      pfnEndThread);
    1.28 +extern DECLSPEC SDL_Thread *SDLCALL SDL_CreateThread(int (*fn) (void *),
    1.29 +                                                     void *data,
    1.30 +                                                     pfnSDL_CurrentBeginThread
    1.31 +                                                     pfnBeginThread,
    1.32 +                                                     pfnSDL_CurrentEndThread
    1.33 +                                                     pfnEndThread);
    1.34  
    1.35  #ifdef __OS2__
    1.36  #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthread, _endthread)
    1.37 @@ -107,26 +107,25 @@
    1.38  #endif
    1.39  #else
    1.40  extern DECLSPEC SDL_Thread *SDLCALL
    1.41 -SDL_CreateThread (int (SDLCALL * fn) (void *), void *data);
    1.42 +SDL_CreateThread(int (SDLCALL * fn) (void *), void *data);
    1.43  #endif
    1.44  
    1.45  /* Get the 32-bit thread identifier for the current thread */
    1.46 -extern DECLSPEC Uint32 SDLCALL SDL_ThreadID (void);
    1.47 +extern DECLSPEC Uint32 SDLCALL SDL_ThreadID(void);
    1.48  
    1.49  /* Get the 32-bit thread identifier for the specified thread,
    1.50     equivalent to SDL_ThreadID() if the specified thread is NULL.
    1.51   */
    1.52 -extern DECLSPEC Uint32 SDLCALL SDL_GetThreadID (SDL_Thread * thread);
    1.53 +extern DECLSPEC Uint32 SDLCALL SDL_GetThreadID(SDL_Thread * thread);
    1.54  
    1.55  /* Wait for a thread to finish.
    1.56     The return code for the thread function is placed in the area
    1.57     pointed to by 'status', if 'status' is not NULL.
    1.58   */
    1.59 -extern DECLSPEC void SDLCALL SDL_WaitThread (SDL_Thread * thread,
    1.60 -                                             int *status);
    1.61 +extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread * thread, int *status);
    1.62  
    1.63  /* Forcefully kill a thread without worrying about its state */
    1.64 -extern DECLSPEC void SDLCALL SDL_KillThread (SDL_Thread * thread);
    1.65 +extern DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread * thread);
    1.66  
    1.67  
    1.68  /* Ends C function definitions when using C++ */