Only allow static strings as ProcessThread names.

Review URL: https://codereview.webrtc.org/1336293002

Cr-Commit-Position: refs/heads/master@{#9932}
This commit is contained in:
stefan
2015-09-14 07:53:38 -07:00
committed by Commit bot
parent ea06a58f40
commit 2b18084d40
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ void ProcessThreadImpl::Start() {
}
thread_ = ThreadWrapper::CreateThread(&ProcessThreadImpl::Run, this,
thread_name_.c_str());
thread_name_);
CHECK(thread_->Start());
}

View File

@ -76,7 +76,7 @@ class ProcessThreadImpl : public ProcessThread {
// TODO(tommi): Support delayed tasks.
std::queue<ProcessTask*> queue_;
bool stop_;
std::string thread_name_;
const char* thread_name_;
};
} // namespace webrtc