Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class null_mutex

boost::interprocess::null_mutex

Synopsis

// In header: <boost/interprocess/sync/null_mutex.hpp>


class null_mutex {
public:
  // construct/copy/destruct
  () ;
  ~();

  // public member functions
   ();
   ();
  template<typename TimePoint>  ();
  template<typename TimePoint>  ();
  template<typename Duration>  ();
   ();
   ();
   ();
   ();
   ();
  template<typename TimePoint>  ();
   ();
   ();
   ();
   ();
  template<typename TimePoint>  ();
   ();
   ();
   ();
   ();
   ();
   ();
  template<typename TimePoint> 
     ();
   ();
   ();
};

Description

Implements a mutex that simulates a mutex without doing any operation and simulates a successful operation.

null_mutex public construct/copy/destruct

  1. () ;

    Constructor. Empty.

  2. ~();

    Destructor. Empty.

null_mutex public member functions

  1.  ();
    Simulates a mutex lock() operation. Empty function.
  2.  ();

    Simulates a mutex try_lock() operation. Equivalent to "return true;"

  3. template<typename TimePoint>  ();

    Simulates a mutex timed_lock() operation. Equivalent to "return true;"

  4. template<typename TimePoint>  ();

    Same as timed_lock, but this function is modeled after the standard library interface.

  5. template<typename Duration>  ();

    Same as timed_lock, but this function is modeled after the standard library interface.

  6.  ();

    Simulates a mutex unlock() operation. Empty function.

  7.  ();

    Simulates a mutex lock_sharable() operation. Empty function.

  8.  ();

    Same as lock_sharable but with a std-compatible interface

  9.  ();

    Simulates a mutex try_lock_sharable() operation. Equivalent to "return true;"

  10.  ();

    Same as try_lock_sharable but with a std-compatible interface

  11. template<typename TimePoint>  ();

    Simulates a mutex timed_lock_sharable() operation. Equivalent to "return true;"

  12.  ();

    Simulates a mutex unlock_sharable() operation. Empty function.

  13.  ();

    Same as unlock_sharable but with a std-compatible interface

  14.  ();

    Simulates a mutex lock_upgradable() operation. Empty function.

  15.  ();

    Simulates a mutex try_lock_upgradable() operation. Equivalent to "return true;"

  16. template<typename TimePoint>  ();

    Simulates a mutex timed_lock_upgradable() operation. Equivalent to "return true;"

  17.  ();

    Simulates a mutex unlock_upgradable() operation. Empty function.

  18.  ();

    Simulates unlock_and_lock_upgradable(). Empty function.

  19.  ();

    Simulates unlock_and_lock_sharable(). Empty function.

  20.  ();

    Simulates unlock_upgradable_and_lock_sharable(). Empty function.

  21.  ();

    Simulates unlock_upgradable_and_lock(). Empty function.

  22.  ();

    Simulates try_unlock_upgradable_and_lock(). Equivalent to "return true;"

  23. template<typename TimePoint> 
       ();

    Simulates timed_unlock_upgradable_and_lock(). Equivalent to "return true;"

  24.  ();

    Simulates try_unlock_sharable_and_lock(). Equivalent to "return true;"

  25.  ();

    Simulates try_unlock_sharable_and_lock_upgradable(). Equivalent to "return true;"


PrevUpHomeNext