Some useful utils. More...
Namespaces | |
namespace | mavutils |
Functions | |
bool | mavutils::set_thread_name (std::thread &thd, const char *name,...) |
Set std::thread name with printf-like mode. | |
template<typename Thread > | |
bool | mavutils::set_thread_name (Thread &thd, std::string &name) |
Set thread name (std::string variation) | |
template<typename T > | |
const std::string | mavutils::to_string_ss (T &obj) |
Convert to string objects with operator <<. |
Some useful utils.
bool mavutils::set_thread_name | ( | std::thread & | thd, |
const char * | name, | ||
... | |||
) | [inline] |
Set std::thread name with printf-like mode.
[in] | thd | std::thread |
[in] | name | name for thread |
Definition at line 38 of file thread_utils.h.
bool mavutils::set_thread_name | ( | Thread & | thd, |
std::string & | name | ||
) | [inline] |
Set thread name (std::string variation)
Definition at line 58 of file thread_utils.h.
const std::string mavutils::to_string_ss | ( | T & | obj | ) | [inline] |
Convert to string objects with operator <<.
Definition at line 67 of file thread_utils.h.