misc/winutils/include/SDL_thread.h
changeset 10017 de822cd3df3a
parent 7809 7d4fb2f35f4f
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
    22 
    22 
    23 #ifndef _SDL_thread_h
    23 #ifndef _SDL_thread_h
    24 #define _SDL_thread_h
    24 #define _SDL_thread_h
    25 
    25 
    26 /** @file SDL_thread.h
    26 /** @file SDL_thread.h
    27  *  Header for the SDL thread management routines 
    27  *  Header for the SDL thread management routines
    28  *
    28  *
    29  *  @note These are independent of the other SDL routines.
    29  *  @note These are independent of the other SDL routines.
    30  */
    30  */
    31 
    31 
    32 #include "SDL_stdinc.h"
    32 #include "SDL_stdinc.h"
    64 #ifndef _WIN32_WCE
    64 #ifndef _WIN32_WCE
    65 #include <process.h> /* This has _beginthread() and _endthread() defined! */
    65 #include <process.h> /* This has _beginthread() and _endthread() defined! */
    66 #endif
    66 #endif
    67 
    67 
    68 #ifdef __OS2__
    68 #ifdef __OS2__
    69 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); 
    69 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg);
    70 typedef void (*pfnSDL_CurrentEndThread)(void);
    70 typedef void (*pfnSDL_CurrentEndThread)(void);
    71 #else
    71 #else
    72 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
    72 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
    73         unsigned (__stdcall *func)(void *), void *arg, 
    73         unsigned (__stdcall *func)(void *), void *arg,
    74         unsigned, unsigned *threadID);
    74         unsigned, unsigned *threadID);
    75 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
    75 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
    76 #endif
    76 #endif
    77 
    77 
    78 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread);
    78 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread);