MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / GetThreadName

Function GetThreadName

Goldleaf/source/base.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 std::unordered_map<Thread*, char*> g_ThreadLogBufferList;
89
90 std::string GetThreadName() {
91 ScopedLock lk(g_ThreadNameLock);
92 const auto it = g_ThreadNameList.find(threadGetSelf());
93 if(it != g_ThreadNameList.end()) {
94 return it->second;
95 }
96 return "???";
97 }
98
99 Lock g_LogLock;
100

Callers 1

LogImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected