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 a snapshot of the develop branch, built from commit 31c6e1f53a.
PrevUpHomeNext

Locks

Header <boost/sync/locks/lock_guard.hpp>
Header <boost/sync/locks/lock_guard_fwd.hpp>
Header <boost/sync/locks/lock_options.hpp>
Header <boost/sync/locks/shared_lock.hpp>
Header <boost/sync/locks/shared_lock_fwd.hpp>
Header <boost/sync/locks/shared_lock_guard.hpp>
Header <boost/sync/locks/shared_lock_guard_fwd.hpp>
Header <boost/sync/locks/unique_lock.hpp>
Header <boost/sync/locks/unique_lock_fwd.hpp>
Header <boost/sync/locks/unlock_guard.hpp>
Header <boost/sync/locks/unlock_guard_fwd.hpp>
Header <boost/sync/locks/upgrade_lock.hpp>
Header <boost/sync/locks/upgrade_lock_fwd.hpp>

This header defines an exclusive lock guard.

This header declares an exclusive lock guard.

namespace boost {
  namespace sync {
    template<typename Mutex> class lock_guard;
  }
}
namespace boost {
  namespace sync {
    struct adopt_lock_t;
    struct defer_lock_t;
    struct try_to_lock_t;

    constexpr defer_lock_t defer_lock;
    constexpr try_to_lock_t try_to_lock;
    constexpr adopt_lock_t adopt_lock;
  }
}

This header defines a shared lock guard.

namespace boost {
  namespace sync {
    template<typename Mutex> 
      void swap(shared_lock< Mutex > &, shared_lock< Mutex > &);
  }
}

This header declares a shared lock guard.

namespace boost {
  namespace sync {
    template<typename Mutex> class shared_lock;
  }
}

This header defines an exclusive lock guard.

This header declares a shared lock guard.

namespace boost {
  namespace sync {
    template<typename Mutex> class shared_lock_guard;
  }
}

This header defines an exclusive lock guard.

namespace boost {
  namespace sync {
    template<typename Mutex> 
      void swap(unique_lock< Mutex > &, unique_lock< Mutex > &);
  }
}

This header declares an exclusive lock guard.

namespace boost {
  namespace sync {
    template<typename Mutex> class unique_lock;
  }
}

This header defines a scope guard temporarily releases a lock.

This header declares a scope guard that temporarily releases the lock.

namespace boost {
  namespace sync {
    template<typename Lockable> class unlock_guard;
  }
}

This header defines an upgradeable lock guard.

namespace boost {
  namespace sync {
    template<typename Mutex> 
      void swap(upgrade_lock< Mutex > &, upgrade_lock< Mutex > &);
  }
}

This header declares an upgrade lock guard.

namespace boost {
  namespace sync {
    template<typename Mutex> class upgrade_lock;
  }
}

PrevUpHomeNext