...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 &, boost::atomic< bool > &); scoped_thread_id(unique_lock< frontend_mutex_type > &, condition_variable_any &, thread::id &, boost::atomic< bool > &); scoped_thread_id(scoped_thread_id const &) = delete; scoped_thread_id & operator=(scoped_thread_id const &) = delete; ~scoped_thread_id(); };
scoped_thread_id
public
construct/copy/destructscoped_thread_id(frontend_mutex_type & mut, condition_variable_any & cond, thread::id & tid, boost::atomic< bool > & sr);Initializing constructor.
scoped_thread_id(unique_lock< frontend_mutex_type > & l, condition_variable_any & cond, thread::id & tid, boost::atomic< bool > & sr);Initializing constructor.
scoped_thread_id(scoped_thread_id const &) = delete;
scoped_thread_id & operator=(scoped_thread_id const &) = delete;
~scoped_thread_id();Destructor.