![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | barrier_t |
struct | thread_cond_t |
struct | thread_semaphore_t |
struct | threadwrapper_t |
Functions | |
int | _Thread_CondBroadcast (void *cond, const char *filename, int fileline) |
int | _Thread_CondSignal (void *cond, const char *filename, int fileline) |
int | _Thread_CondWait (void *cond, void *mutex, const char *filename, int fileline) |
void * | _Thread_CreateBarrier (unsigned int count, const char *filename, int fileline) |
void * | _Thread_CreateCond (const char *filename, int fileline) |
void * | _Thread_CreateMutex (const char *filename, int fileline) |
void * | _Thread_CreateThread (int(*fn)(void *), void *data, const char *filename, int fileline) |
void | _Thread_DestroyBarrier (void *barrier, const char *filename, int fileline) |
void | _Thread_DestroyCond (void *cond, const char *filename, int fileline) |
void | _Thread_DestroyMutex (void *mutex, const char *filename, int fileline) |
int | _Thread_LockMutex (void *mutex, const char *filename, int fileline) |
int | _Thread_UnlockMutex (void *mutex, const char *filename, int fileline) |
void | _Thread_WaitBarrier (void *barrier, const char *filename, int fileline) |
int | _Thread_WaitThread (void *d, int retval, const char *filename, int fileline) |
static thread_semaphore_t * | Thread_CreateSemaphore (unsigned int v) |
static void | Thread_DestroySemaphore (thread_semaphore_t *s) |
qbool | Thread_HasThreads (void) |
int | Thread_Init (void) |
static int | Thread_PostSemaphore (thread_semaphore_t *s) |
void | Thread_Shutdown (void) |
static int | Thread_WaitSemaphore (thread_semaphore_t *s, unsigned int msec) |
unsigned int __stdcall | Thread_WrapperFunc (void *d) |
Definition at line 157 of file thread_win.c.
References thread_cond_t::done, i, thread_cond_t::mutex, n, thread_cond_t::sem, thread_cond_t::signals, Sys_Printf(), Thread_PostSemaphore(), Thread_WaitSemaphore(), and thread_cond_t::waiting.
Definition at line 137 of file thread_win.c.
References thread_cond_t::done, thread_cond_t::mutex, n, thread_cond_t::sem, thread_cond_t::signals, Sys_Printf(), Thread_PostSemaphore(), Thread_WaitSemaphore(), and thread_cond_t::waiting.
Definition at line 179 of file thread_win.c.
References thread_cond_t::done, thread_cond_t::mutex, thread_cond_t::sem, thread_cond_t::signals, Sys_Printf(), Thread_PostSemaphore(), Thread_WaitSemaphore(), and thread_cond_t::waiting.
Definition at line 263 of file thread_win.c.
References b, count, NULL, Sys_Printf(), Thread_CreateCond, Thread_CreateMutex, and Z_Malloc.
Definition at line 112 of file thread_win.c.
References thread_cond_t::done, FALSE, thread_cond_t::mutex, NULL, thread_cond_t::sem, thread_cond_t::signals, Sys_Printf(), Thread_CreateSemaphore(), and thread_cond_t::waiting.
Definition at line 26 of file thread_win.c.
References FALSE, NULL, and Sys_Printf().
void * _Thread_CreateThread | ( | int(* | fn )(void *), |
void * | data, | ||
const char * | filename, | ||
int | fileline ) |
Definition at line 227 of file thread_win.c.
References data, NULL, Sys_Printf(), Thread_WrapperFunc(), and w.
Definition at line 276 of file thread_win.c.
References b, Sys_Printf(), Thread_DestroyCond, and Thread_DestroyMutex.
Definition at line 126 of file thread_win.c.
References thread_cond_t::done, thread_cond_t::mutex, thread_cond_t::sem, Sys_Printf(), and Thread_DestroySemaphore().
Definition at line 35 of file thread_win.c.
References Sys_Printf().
Definition at line 43 of file thread_win.c.
References Sys_Printf().
Definition at line 51 of file thread_win.c.
References Sys_Printf().
Definition at line 286 of file thread_win.c.
References b, Sys_Printf(), Thread_CondBroadcast, Thread_CondWait, Thread_LockMutex, and Thread_UnlockMutex.
Definition at line 241 of file thread_win.c.
References Sys_Printf(), and w.
|
static |
Definition at line 66 of file thread_win.c.
References NULL, thread_semaphore_t::semaphore, v, and thread_semaphore_t::value.
Referenced by _Thread_CreateCond().
|
static |
Definition at line 74 of file thread_win.c.
References thread_semaphore_t::semaphore.
Referenced by _Thread_DestroyCond().
Definition at line 17 of file thread_win.c.
Referenced by Con_Init(), Crypto_Init(), Curl_Init(), FS_Init_Dir(), Memory_Init(), NetConn_Init(), and SV_StartThread().
Definition at line 5 of file thread_win.c.
References Con_Printf().
Referenced by Host_Init().
|
static |
Definition at line 93 of file thread_win.c.
References NULL, thread_semaphore_t::semaphore, and thread_semaphore_t::value.
Referenced by _Thread_CondBroadcast(), _Thread_CondSignal(), and _Thread_CondWait().
|
static |
Definition at line 80 of file thread_win.c.
References r, thread_semaphore_t::semaphore, and thread_semaphore_t::value.
Referenced by _Thread_CondBroadcast(), _Thread_CondSignal(), and _Thread_CondWait().
Definition at line 219 of file thread_win.c.
References threadwrapper_t::result, and w.
Referenced by _Thread_CreateThread().