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 char * | mavutils::to_string_cs (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 47 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 63 of file thread_utils.h.
const char* mavutils::to_string_cs | ( | T & | obj | ) | [inline] |
Convert to string objects with operator <<.
Definition at line 72 of file thread_utils.h.