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.

Struct template strictest_lock

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


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

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


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.