Fix thread safety issues in GetLogPrefix

This commit is contained in:
Jonathan G Rennison
2023-12-29 23:56:33 +00:00
parent 3683fdce6a
commit 74a2cd5123
3 changed files with 17 additions and 10 deletions

View File

@@ -131,6 +131,13 @@ std::string GetDebugString();
void ShowInfo(const char *str);
void CDECL ShowInfoF(const char *str, ...) WARN_FORMAT(1, 2);
struct log_prefix {
const char *GetLogPrefix();
private:
char buffer[24];
};
const char *GetLogPrefix();
void ClearDesyncMsgLog();