...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::sinks::asynchronous_sink::scoped_thread_id — A scope guard that implements thread ID management.
// In header: <boost/log/sinks/async_frontend.hpp> // A scope guard that implements thread ID management. class scoped_thread_id { public: // construct/copy/destruct scoped_thread_id(frontend_mutex_type &, condition_variable_any &, thread::id &, bool volatile &); scoped_thread_id(unique_lock< frontend_mutex_type > &, condition_variable_any &, thread::id &, bool volatile &); scoped_thread_id(scoped_thread_id const &); scoped_thread_id& operator=(scoped_thread_id const &); ~scoped_thread_id(); };
scoped_thread_id
public
construct/copy/destructscoped_thread_id(frontend_mutex_type & mut, condition_variable_any & cond, thread::id & tid, bool volatile & sr);Initializing constructor.
scoped_thread_id(unique_lock< frontend_mutex_type > & l, condition_variable_any & cond, thread::id & tid, bool volatile & sr);Initializing constructor.
scoped_thread_id(scoped_thread_id const &);
scoped_thread_id& operator=(scoped_thread_id const &);
~scoped_thread_id();Destructor.