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

Class lock_error

boost::lock_error —

The lock_error class defines an exception type thrown to indicate a locking related error has been detected.


class lock_error : public std::logical_error {
// construct/copy/destruct


Examples of errors indicated by a lock_error exception include a lock operation which can be determined to result in a deadlock, or unlock operations attempted by a thread that does not own the lock.

lock_error construct/copy/destruct

  1. lock_error();

    Effects: Constructs a lock_error object.

Copyright 2001-2003 William E. Kempf