zenilib  0.5.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
SDL_thread.h File Reference
#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 Documentation

typedef struct SDL_Thread SDL_Thread

Definition at line 46 of file SDL_thread.h.

Function Documentation

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().

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().