Namespaces | Functions
Mavutils

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 <<.

Detailed Description

Some useful utils.


Function Documentation

bool mavutils::set_thread_name ( std::thread &  thd,
const char *  name,
  ... 
) [inline]

Set std::thread name with printf-like mode.

Parameters:
[in]thdstd::thread
[in]namename for thread
Returns:
true if success
Note:
Only for Linux target
Todo:
add for other posix system

Definition at line 38 of file thread_utils.h.

template<typename Thread >
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.

template<typename T >
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.



libmavconn
Author(s): Vladimir Ermakov
autogenerated on Sat Jun 8 2019 19:55:13