![]() |
doom3-gpl
Doom 3 GPL source release
|
#include <sys/types.h>#include <sys/stat.h>#include <errno.h>#include <stdio.h>#include <dirent.h>#include <unistd.h>#include <sys/mman.h>#include <sys/time.h>#include <pwd.h>#include <pthread.h>#include "../../idlib/precompiled.h"#include "posix_public.h"Go to the source code of this file.
Macros | |
| #define | MAX_THREADS 10 |
Typedefs | |
| typedef void *(* | pthread_function_t )(void *) |
Functions | |
| void | Sys_EnterCriticalSection (int index) |
| void | Sys_LeaveCriticalSection (int index) |
| void | Sys_WaitForEvent (int index) |
| void | Sys_TriggerEvent (int index) |
| void | Sys_CreateThread (xthread_t function, void *parms, xthreadPriority priority, xthreadInfo &info, const char *name, xthreadInfo **threads, int *thread_count) |
| void | Sys_DestroyThread (xthreadInfo &info) |
| const char * | Sys_GetThreadName (int *index) |
| void | Posix_StartAsyncThread () |
| void | Posix_InitPThreads () |
Variables | |
| const int | MAX_LOCAL_CRITICAL_SECTIONS = MAX_CRITICAL_SECTIONS + 1 |
| pthread_cond_t | event_cond [MAX_TRIGGER_EVENTS] |
| bool | signaled [MAX_TRIGGER_EVENTS] |
| bool | waiting [MAX_TRIGGER_EVENTS] |
| xthreadInfo * | g_threads [MAX_THREADS] |
| int | g_thread_count = 0 |
| xthreadInfo | asyncThread |
| #define MAX_THREADS 10 |
Definition at line 152 of file posix_threads.cpp.
Definition at line 157 of file posix_threads.cpp.
| void Posix_InitPThreads | ( | ) |
Definition at line 268 of file posix_threads.cpp.
Definition at line 254 of file posix_threads.cpp.
| void Sys_CreateThread | ( | xthread_t | function, |
| void * | parms, | ||
| xthreadPriority | priority, | ||
| xthreadInfo & | info, | ||
| const char * | name, | ||
| xthreadInfo ** | threads, | ||
| int * | thread_count | ||
| ) |
Definition at line 164 of file posix_threads.cpp.
| void Sys_DestroyThread | ( | xthreadInfo & | info | ) |
Definition at line 189 of file posix_threads.cpp.
Definition at line 61 of file posix_threads.cpp.
Definition at line 222 of file posix_threads.cpp.
Definition at line 80 of file posix_threads.cpp.
Definition at line 133 of file posix_threads.cpp.
Definition at line 113 of file posix_threads.cpp.
| xthreadInfo asyncThread |
Definition at line 247 of file posix_threads.cpp.
| pthread_cond_t event_cond[MAX_TRIGGER_EVENTS] |
Definition at line 104 of file posix_threads.cpp.
| int g_thread_count = 0 |
Definition at line 155 of file posix_threads.cpp.
| xthreadInfo* g_threads[MAX_THREADS] |
Definition at line 153 of file posix_threads.cpp.
| const int MAX_LOCAL_CRITICAL_SECTIONS = MAX_CRITICAL_SECTIONS + 1 |
Definition at line 53 of file posix_threads.cpp.
| bool signaled[MAX_TRIGGER_EVENTS] |
Definition at line 105 of file posix_threads.cpp.
| bool waiting[MAX_TRIGGER_EVENTS] |
Definition at line 106 of file posix_threads.cpp.
1.8.6.