71 #if defined(__WIN32__) && !defined(HAVE_LIBC) 92 #define SDL_PASSED_BEGINTHREAD_ENDTHREAD 95 typedef uintptr_t(__cdecl * pfnSDL_CurrentBeginThread)
96 (
void *, unsigned, unsigned (__stdcall *
func)(
void *),
97 void * ,
unsigned,
unsigned * );
98 typedef void (__cdecl * pfnSDL_CurrentEndThread) (
unsigned code);
105 pfnSDL_CurrentBeginThread pfnBeginThread,
106 pfnSDL_CurrentEndThread pfnEndThread);
111 #if defined(SDL_CreateThread) && SDL_DYNAMIC_API 112 #undef SDL_CreateThread 113 #define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex) 115 #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex) 118 #elif defined(__OS2__) 123 #define SDL_PASSED_BEGINTHREAD_ENDTHREAD 129 typedef int (*pfnSDL_CurrentBeginThread)(
void (*
func)(
void *),
void *,
unsigned,
void * );
130 typedef void (*pfnSDL_CurrentEndThread)(
void);
133 pfnSDL_CurrentBeginThread pfnBeginThread,
134 pfnSDL_CurrentEndThread pfnEndThread);
135 #if defined(SDL_CreateThread) && SDL_DYNAMIC_API 136 #undef SDL_CreateThread 137 #define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread) 139 #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread) int(* SDL_ThreadFunction)(void *data)
SDL_TLSID SDL_TLSCreate(void)
Create an identifier that is globally visible to all threads but refers to data that is thread-specif...
SDL_threadID SDL_ThreadID(void)
const char * SDL_GetThreadName(SDL_Thread *thread)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void SDL_WaitThread(SDL_Thread *thread, int *status)
GLuint const GLchar * name
void * SDL_TLSGet(SDL_TLSID id)
Get the value associated with a thread local storage ID for the current thread.
SDL_threadID SDL_GetThreadID(SDL_Thread *thread)
int SDL_TLSSet(SDL_TLSID id, const void *value, void(*destructor)(void *))
Set the value associated with a thread local storage ID for the current thread.
int SDL_SetThreadPriority(SDL_ThreadPriority priority)
GLsizei const GLfloat * value
void SDL_DetachThread(SDL_Thread *thread)
SDL_Thread * SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
unsigned long SDL_threadID