Home | History | Annotate | Download | only in base

Lines Matching full:thread_name

87 std::string SanitizeThreadName(const std::string& thread_name) {
88 size_t i = thread_name.length();
90 while (i > 0 && isdigit(thread_name[i - 1]))
93 if (i == thread_name.length())
94 return thread_name;
96 return thread_name.substr(0, i) + '*';
441 void ThreadData::InitializeThreadContext(const std::string& thread_name) {
444 DCHECK_NE(thread_name, kWorkerThreadSanitizedName);
451 GetRetiredOrCreateThreadData(SanitizeThreadName(thread_name));