Constructor

Initializes the mutex object.

  mutex ();
  mutex(const mutex&);
  

A default and a copy constructor are defined.

The copy constructor is declared private and not defined to prevent the mutex object from being copied.

  mutex& operator=(const mutex&);
  

The assignment operator is declared private and not defined to prevent the mutex object from being copied.