|
UFO: Alien Invasion
|
game lib logging handling More...

Go to the source code of this file.
Functions | |
| static void | SV_LogPrintOutput (const char *string) |
| void | SV_LogHandleOutput (void) |
| Handle the log output from the main thread by reading the strings from the dbuffer the game lib thread has written into. | |
| void | SV_LogAdd (const char *format, va_list ap) |
| Async version to add a log entry for the game lib. | |
| void | SV_LogInit (void) |
| void | SV_LogShutdown (void) |
Variables | |
| static SDL_mutex * | svLogMutex |
| static stringHunk_t * | svLogHunk |
game lib logging handling
Definition in file sv_log.cpp.
| void SV_LogAdd | ( | const char * | format, |
| va_list | ap ) |
Async version to add a log entry for the game lib.
Com_Printf from within the game lib thread might freeze some systems as the console print functions are not thread safe. | format | The format of the message |
| ap | The variadic function argument list to fill the format strings |
Definition at line 60 of file sv_log.cpp.
References format(), Q_vsnprintf(), STRHUNK_Add(), svLogHunk, and svLogMutex.
Referenced by SV_dprintf(), and SV_PlayerPrintf().
Handle the log output from the main thread by reading the strings from the dbuffer the game lib thread has written into.
Definition at line 44 of file sv_log.cpp.
References STRHUNK_Reset(), STRHUNK_Visit(), SV_LogPrintOutput(), svLogHunk, and svLogMutex.
Referenced by SV_Frame().
Definition at line 71 of file sv_log.cpp.
References STRHUNK_Create(), svLogHunk, and svLogMutex.
Referenced by SV_Init().
|
static |
Definition at line 35 of file sv_log.cpp.
References Com_Printf().
Referenced by SV_LogHandleOutput().
Definition at line 78 of file sv_log.cpp.
References STRHUNK_Delete(), svLogHunk, and svLogMutex.
Referenced by SV_Clear().
|
static |
Definition at line 33 of file sv_log.cpp.
Referenced by SV_LogAdd(), SV_LogHandleOutput(), SV_LogInit(), and SV_LogShutdown().
|
static |
Definition at line 32 of file sv_log.cpp.
Referenced by SV_LogAdd(), SV_LogHandleOutput(), SV_LogInit(), and SV_LogShutdown().