forked from organicmaps/organicmaps
Some code fixes.
This commit is contained in:
parent
2c109df2aa
commit
4b31192e3b
1 changed files with 5 additions and 4 deletions
|
@ -40,14 +40,15 @@ namespace my
|
|||
|
||||
static int threadsCount = 1;
|
||||
static map<threads::ThreadID, int> m_shortThreadID;
|
||||
threads::ThreadID id = threads::GetCurrentThreadID();
|
||||
if (m_shortThreadID[id] == 0)
|
||||
m_shortThreadID[id] = threadsCount++;
|
||||
|
||||
int & threadNumber = m_shortThreadID[threads::GetCurrentThreadID()];
|
||||
if (threadNumber == 0)
|
||||
threadNumber = threadsCount++;
|
||||
|
||||
ostringstream out;
|
||||
out << "LOG";
|
||||
|
||||
out << " TID(" << m_shortThreadID[id] << ")";
|
||||
out << " TID(" << threadNumber << ")";
|
||||
|
||||
static Timer s_Timer;
|
||||
static char const * names[] = { "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL" };
|
||||
|
|
Loading…
Add table
Reference in a new issue