#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_ThreadID (void) |
DECLSPEC Uint32 SDLCALL | SDL_GetThreadID (SDL_Thread *thread) |
DECLSPEC void SDLCALL | SDL_WaitThread (SDL_Thread *thread, int *status) |
DECLSPEC void SDLCALL | SDL_KillThread (SDL_Thread *thread) |
DECLSPEC SDL_Thread* SDLCALL SDL_CreateThread | ( | int(SDLCALL *fn)(void *) | , | |
void * | data | |||
) |
Create a thread
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.
DECLSPEC void SDLCALL SDL_KillThread | ( | SDL_Thread * | thread | ) |
Forcefully kill a thread without worrying about its state
DECLSPEC Uint32 SDLCALL SDL_ThreadID | ( | void | ) |
Get the 32-bit thread identifier for the current thread
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.