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 char * mavutils::to_string_cs (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 47 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 63 of file thread_utils.h.

template<typename T >
const char* mavutils::to_string_cs ( T &  obj) [inline]

Convert to string objects with operator <<.

Definition at line 72 of file thread_utils.h.



libmavconn
Author(s): Vladimir Ermakov
autogenerated on Wed Aug 26 2015 12:29:08