Boost C++ Libraries 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.

Class scoped_flag

boost::log::sinks::asynchronous_sink::scoped_flag — A scope guard that resets a flag on destructor.


// In header: <boost/log/sinks/async_frontend.hpp>

// A scope guard that resets a flag on destructor.

class scoped_flag {
  // construct/copy/destruct
  explicit scoped_flag(frontend_mutex_type &, condition_variable_any &, 
                       volatile bool &);
  scoped_flag(scoped_flag const &);
  scoped_flag& operator=(scoped_flag const &);


scoped_flag public construct/copy/destruct

  1. explicit scoped_flag(frontend_mutex_type & mut, condition_variable_any & cond, 
                         volatile bool & f);
  2. scoped_flag(scoped_flag const &);
  3. scoped_flag& operator=(scoped_flag const &);
  4. ~scoped_flag();