Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Class scoped_thread_id

boost::log::sinks::asynchronous_sink::scoped_thread_id — A scope guard that implements thread ID management.

Synopsis

// 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();
};

Description

scoped_thread_id public construct/copy/destruct

  1. scoped_thread_id(frontend_mutex_type & mut, condition_variable_any & cond, 
                     thread::id & tid, boost::atomic< bool > & sr);
    Initializing constructor.
  2. scoped_thread_id(unique_lock< frontend_mutex_type > & l, 
                     condition_variable_any & cond, thread::id & tid, 
                     boost::atomic< bool > & sr);
    Initializing constructor.
  3. scoped_thread_id(scoped_thread_id const &) = delete;
  4. scoped_thread_id & operator=(scoped_thread_id const &) = delete;
  5. ~scoped_thread_id();
    Destructor.

PrevUpHomeNext