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 for the latest Boost documentation.
PrevUpHomeNext

Struct template strictest_lock

boost::log::strictest_lock — The metafunction selects the most strict lock type of the specified.

Synopsis

// In header: <boost/log/utility/strictest_lock.hpp>

template<typename... LocksT> 
struct strictest_lock {
  // types
  typedef implementation_defined type;
};

Description

The template supports all lock types provided by the Boost.Thread library (except for upgrade_to_unique_lock), plus additional pseudo-lock no_lock that indicates no locking at all. Exclusive locks are considered the strictest, shared locks are weaker, and no_lock is the weakest.


PrevUpHomeNext