#include <host_utils.h>
◆ ThreadTracer()
cuttlefish::confui::thread::ThreadTracer::ThreadTracer |
( |
| ) |
|
|
privatedefault |
◆ Get() [1/2]
std::optional< std::thread::id > cuttlefish::confui::thread::ThreadTracer::Get |
( |
const std::string & |
name | ) |
|
|
private |
◆ Get() [2/2]
std::string cuttlefish::confui::thread::ThreadTracer::Get |
( |
const std::thread::id |
id = std::this_thread::get_id() | ) |
|
|
private |
◆ RunThread()
template<typename F , typename... Args>
std::thread cuttlefish::confui::thread::ThreadTracer::RunThread |
( |
const std::string & |
name, |
|
|
F && |
f, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineprivate |
◆ Set()
void cuttlefish::confui::thread::ThreadTracer::Set |
( |
const std::string & |
name, |
|
|
const std::thread::id |
tid |
|
) |
| |
|
private |
◆ GetId
◆ GetName
◆ GetThreadTracer
◆ RunThread
template<typename F , typename... Args>
std::thread RunThread |
( |
const std::string & |
name, |
|
|
F && |
f, |
|
|
Args &&... |
args |
|
) |
| |
|
friend |
◆ Set
void cuttlefish::confui::thread::ThreadTracer::Set |
( |
const std::string & |
name, |
|
|
const std::thread::id |
tid |
|
) |
| |
|
friend |
◆ id2name_
std::map<std::thread::id, std::string> cuttlefish::confui::thread::ThreadTracer::id2name_ |
|
private |
◆ mtx_
std::mutex cuttlefish::confui::thread::ThreadTracer::mtx_ |
|
private |
◆ name2id_
std::map<std::string, std::thread::id> cuttlefish::confui::thread::ThreadTracer::name2id_ |
|
private |
The documentation for this class was generated from the following files: