- tid = thread_name_map[thread] = ++next_thread_num;
- auto utime = duration_cast<microseconds>(system_clock::now().time_since_epoch()).count() % 1000000000;
- f << setfill('0') << dec << left << setw(9) << utime << " ";
- f << setfill(' ') << log_thread_prefix << left << setw(2) << tid;
- f << " " << setw(20) << file << " " << setw(18) << func;
- return move(f);
+ tid = global->thread_name_map[thread] = ++global->next_thread_num;
+ auto utime = duration_cast<microseconds>(
+ system_clock::now().time_since_epoch()).count() % 1000000000;
+ f << std::setfill('0') << std::dec << std::left << std::setw(9) << utime << " ";
+ f << std::setfill(' ') << global->log_thread_prefix << std::left << std::setw(2) << tid;
+ f << " " << std::setw(20) << file << " " << std::setw(18) << func;
+ return std::move(f);