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 to view this page for the latest version.
PrevUpHomeNext

Class dummy_mutex

boost::signals2::dummy_mutex — Fake mutex which does nothing.

Synopsis

// In header: <boost/signals2/dummy_mutex.hpp>


class dummy_mutex : public noncopyable {
public:
  void lock();
  bool try_lock();
  void unlock();
};

Description

You may wish to use the dummy_mutex class for the Mutex template type of your signals if you are not concerned about thread safety. This may give slightly faster performance, since dummy_mutex performs no actual locking.

void lock();

No effect.

bool try_lock();

No effect.

Returns:

true.

void unlock();

No effect.


PrevUpHomeNext