Class unique_lock

poet::mutex_grapher::unique_lock — Provides locked access to the mutex_grapher singleton.

Synopsis


// Provides locked access to the mutex_grapher singleton.
class unique_lock :
  public monitor_unique_lock<monitor_ptr<mutex_grapher, boost::mutex> >
{
public:
  // construct/copy/destruct
  unique_lock();
};

Description

This unique_lock class is default constructible (since there is only one mutex_grapher object), and inherits from monitor_unique_lock. Creating objects of this class is the only way to access the mutex_grapher singleton.

unique_lock public construct/copy/destruct

  1. unique_lock();

    Creates a monitor_unique_lock which provides access to the mutex_grapher singleton.