Android-cuttlefish cvd tool
Classes | Functions
cuttlefish::confui::thread Namespace Reference

Classes

class  ThreadTracer
 

Functions

ThreadTracerGetThreadTracer ()
 
std::string GetName (const std::thread::id tid)
 
std::optional< std::thread::idGetId (const std::string &name)
 
void Set (const std::string &name, const std::thread::id tid)
 
template<typename F , typename... Args>
std::thread RunThread (const std::string &name, F &&f, Args &&... args)
 

Function Documentation

◆ GetId()

std::optional< std::thread::id > cuttlefish::confui::thread::GetId ( const std::string &  name)

◆ GetName()

std::string cuttlefish::confui::thread::GetName ( const std::thread::id  tid)

◆ GetThreadTracer()

ThreadTracer & cuttlefish::confui::thread::GetThreadTracer ( )

◆ RunThread()

template<typename F , typename... Args>
std::thread cuttlefish::confui::thread::RunThread ( const std::string &  name,
F &&  f,
Args &&...  args 
)

◆ Set()

void cuttlefish::confui::thread::Set ( const std::string &  name,
const std::thread::id  tid 
)