Senty: add threadname to context

This commit is contained in:
Lion Kortlepel authored and Lion committed 2021-09-08 19:55:03 +03:00
1 parent 8fada3ac04
commit 9f52ab2e54
3 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -73,8 +73,8 @@ std::string DeComp(std::string Compressed) {
std::map<std::thread::id, std::string> threadNameMap;
std::string ThreadName() {
if (Application::Settings.DebugModeEnabled) {
std::string ThreadName(bool DebugModeOverride) {
if (DebugModeOverride || Application::Settings.DebugModeEnabled) {
auto id = std::this_thread::get_id();
if (threadNameMap.find(id) != threadNameMap.end()) {
// found