|
zenilib
0.5.1.0
|
#include "SDL_stdinc.h"#include "SDL_error.h"#include "SDL_mutex.h"#include "begin_code.h"#include "close_code.h"Go to the source code of this file.
Typedefs | |
| typedef struct SDL_Thread | SDL_Thread |
Functions | |
| DECLSPEC SDL_Thread *SDLCALL | SDL_CreateThread (int(SDLCALL *fn)(void *), void *data) |
| DECLSPEC Uint32 SDLCALL | SDL_GetThreadID (SDL_Thread *thread) |
| DECLSPEC void SDLCALL | SDL_KillThread (SDL_Thread *thread) |
| DECLSPEC Uint32 SDLCALL | SDL_ThreadID (void) |
| DECLSPEC void SDLCALL | SDL_WaitThread (SDL_Thread *thread, int *status) |
| typedef struct SDL_Thread SDL_Thread |
Definition at line 46 of file SDL_thread.h.
Create a thread
Definition at line 211 of file SDL_thread.c.
References NULL, ret, SDL_AddThread(), SDL_CreateSemaphore(), SDL_DelThread(), SDL_DestroySemaphore(), SDL_free(), SDL_malloc(), SDL_memset(), SDL_OutOfMemory, SDL_SemWait(), SDL_SYS_CreateThread(), SDL_Thread::status, and thread.
Referenced by CheckInit(), main(), QZ_SetVideoFullScreen(), SDL_InitBeApp(), SDL_OpenAudio(), SDL_StartEventThread(), SDL_SYS_TimerInit(), and ThreadFunc().
| DECLSPEC Uint32 SDLCALL SDL_GetThreadID | ( | SDL_Thread * | thread | ) |
Get the 32-bit thread identifier for the specified thread, equivalent to SDL_ThreadID() if the specified thread is NULL.
Definition at line 281 of file SDL_thread.c.
References SDL_ThreadID(), and SDL_Thread::threadid.
| DECLSPEC void SDLCALL SDL_KillThread | ( | SDL_Thread * | thread | ) |
Forcefully kill a thread without worrying about its state
Definition at line 81 of file SDL_systhread.c.
References SDL_Thread::handle, NULL, SDL_SYS_KillThread(), and SDL_WaitThread().
Referenced by closemutex(), and main().
Get the 32-bit thread identifier for the current thread
Definition at line 81 of file SDL_systhread.c.
References NULL.
Referenced by closemutex(), main(), NX_ToggleFullScreen(), printid(), Run(), SDL_GetErrBuf(), SDL_GetThreadID(), SDL_GobbleEvents(), SDL_Lock_EventThread(), SDL_LockAudio_Default(), SDL_mutexP(), SDL_mutexV(), SDL_RemoveTimer(), SDL_RunAudio(), SDL_RunThread(), SDL_SYS_CreateThread(), SDL_ThreadedTimerCheck(), SDL_Unlock_EventThread(), SDL_UnlockAudio_Default(), ThreadFunc(), and X11_ToggleFullScreen().
| DECLSPEC void SDLCALL SDL_WaitThread | ( | SDL_Thread * | thread, |
| int * | status | ||
| ) |
Wait for a thread to finish. The return code for the thread function is placed in the area pointed to by 'status', if 'status' is not NULL.
Definition at line 72 of file SDL_systhread.c.
References SDL_Thread::handle, NULL, SDL_DelThread(), SDL_free(), SDL_SYS_WaitThread(), and SDL_Thread::status.
Referenced by main(), QZ_UnsetVideoMode(), SDL_AudioQuit(), SDL_KillThread(), SDL_QuitBeApp(), SDL_StopEventThread(), SDL_SYS_TimerQuit(), and ThreadFunc().