World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
72 #if defined(__WIN32__)
93 #define SDL_PASSED_BEGINTHREAD_ENDTHREAD
97 (
void *, unsigned, unsigned (__stdcall *
func)(
void *),
98 void * ,
unsigned,
unsigned * );
101 #ifndef SDL_beginthread
102 #define SDL_beginthread _beginthreadex
104 #ifndef SDL_endthread
105 #define SDL_endthread _endthreadex
118 const char *
name,
const size_t stacksize,
void *
data,
126 #if defined(SDL_CreateThread) && SDL_DYNAMIC_API
127 #undef SDL_CreateThread
128 #define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)SDL_beginthread, (pfnSDL_CurrentEndThread)SDL_endthread)
129 #undef SDL_CreateThreadWithStackSize
130 #define SDL_CreateThreadWithStackSize(fn, name, stacksize, data) SDL_CreateThreadWithStackSize_REAL(fn, name, stacksize, data, (pfnSDL_CurrentBeginThread)SDL_beginthread, (pfnSDL_CurrentEndThread)SDL_endthread)
132 #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)SDL_beginthread, (pfnSDL_CurrentEndThread)SDL_endthread)
133 #define SDL_CreateThreadWithStackSize(fn, name, stacksize, data) SDL_CreateThreadWithStackSize(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)SDL_endthread)
136 #elif defined(__OS2__)
141 #define SDL_PASSED_BEGINTHREAD_ENDTHREAD
152 #ifndef SDL_beginthread
153 #define SDL_beginthread _beginthread
155 #ifndef SDL_endthread
156 #define SDL_endthread _endthread
168 #if defined(SDL_CreateThread) && SDL_DYNAMIC_API
169 #undef SDL_CreateThread
170 #define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)SDL_beginthread, (pfnSDL_CurrentEndThread)SDL_endthread)
171 #undef SDL_CreateThreadWithStackSize
172 #define SDL_CreateThreadWithStackSize(fn, name, stacksize, data) SDL_CreateThreadWithStackSize_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)SDL_beginthread, (pfnSDL_CurrentEndThread)SDL_endthread)
174 #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)SDL_beginthread, (pfnSDL_CurrentEndThread)SDL_endthread)
175 #define SDL_CreateThreadWithStackSize(fn, name, stacksize, data) SDL_CreateThreadWithStackSize(fn, name, stacksize, data, (pfnSDL_CurrentBeginThread)SDL_beginthread, (pfnSDL_CurrentEndThread)SDL_endthread)
DECLSPEC int SDLCALL SDL_SetThreadPriority(SDL_ThreadPriority priority)
int(SDLCALL * SDL_ThreadFunction)(void *data)
@ SDL_THREAD_PRIORITY_TIME_CRITICAL
@ SDL_THREAD_PRIORITY_HIGH
DECLSPEC void SDLCALL SDL_DetachThread(SDL_Thread *thread)
void(__cdecl * pfnSDL_CurrentEndThread)(unsigned code)
DECLSPEC int SDLCALL SDL_TLSSet(SDL_TLSID id, const void *value, void(SDLCALL *destructor)(void *))
Set the value associated with a thread local storage ID for the current thread.
@ SDL_THREAD_PRIORITY_LOW
struct SDL_Thread SDL_Thread
DECLSPEC SDL_TLSID SDLCALL SDL_TLSCreate(void)
Create an identifier that is globally visible to all threads but refers to data that is thread-specif...
DECLSPEC SDL_threadID SDLCALL SDL_ThreadID(void)
EGLSyncKHR EGLint EGLint * value
DECLSPEC void *SDLCALL SDL_TLSGet(SDL_TLSID id)
Get the value associated with a thread local storage ID for the current thread.
unsigned __int64 uintptr_t
DECLSPEC SDL_Thread *SDLCALL SDL_CreateThreadWithStackSize(int(SDLCALL *fn)(void *), const char *name, const size_t stacksize, void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
DECLSPEC SDL_threadID SDLCALL SDL_GetThreadID(SDL_Thread *thread)
typedef void(SDLCALL *SDL_AudioFilter)(struct SDL_AudioCVT *cvt
unsigned long SDL_threadID
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
EGLImageKHR EGLint * name
const DECLSPEC char *SDLCALL SDL_GetThreadName(SDL_Thread *thread)
@ SDL_THREAD_PRIORITY_NORMAL
DECLSPEC SDL_Thread *SDLCALL SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread *thread, int *status)
uintptr_t(__cdecl * pfnSDL_CurrentBeginThread)(void *, unsigned, unsigned(__stdcall *func)(void *), void *, unsigned, unsigned *)