Boost C++ Libraries

PrevUpHomeNext

Class lock_guard

boost::taar::context_store::lock_guard — Releases an entry's lock (and refreshes its activity) on destruction.

Synopsis

// In header: <boost/taar/core/context_store.hpp>



// Releases an entry's lock (and refreshes its activity) on destruction.

class lock_guard {
public:

  // public member functions
  lock_guard() = default;
  lock_guard(lock_guard  const &) = delete;
  lock_guard & operator=(lock_guard  const &) = delete;
  lock_guard(lock_guard &&) noexcept;
  lock_guard & operator=(lock_guard &&) noexcept;
  ~lock_guard();
  entry_ptr const & get() const noexcept;
  explicit operator bool() const noexcept;
};

Description

lock_guard public member functions

  1. lock_guard() = default;
  2. lock_guard(lock_guard  const &) = delete;
  3. lock_guard & operator=(lock_guard  const &) = delete;
  4. lock_guard(lock_guard && other) noexcept;
  5. lock_guard & operator=(lock_guard && other) noexcept;
  6. ~lock_guard();
  7. entry_ptr const & get() const noexcept;
  8. explicit operator bool() const noexcept;

PrevUpHomeNext