cpp/named req/Mutex

The requirements extends the  requirements to include inter-thread synchronization.

Requirements

 * not copyable
 * not movable
 * not copyable
 * not movable
 * not movable

For an object of  type:
 * The expression has the following properties
 * Behaves as an atomic operation.
 * Blocks the calling thread until exclusive ownership of the mutex can be obtained.
 * Prior operations on the same mutex synchronize-with this lock operation (equivalent to release-acquire std)
 * The behavior is undefined if the calling thread already owns the mutex (except if m is std or std)
 * Exception of type std may be thrown on errors, with the following error codes:
 * std if the calling thread does not have required privileges
 * std if the implementation detects that this operation would lead to deadlock


 * The expression has the following properties
 * Behaves as an atomic operation.
 * Attempts to obtain exclusive ownership of the mutex for the calling thread without blocking. If ownership is not obtained, returns immediately. The function is allowed to spuriously fail and return even if the mutex is not currently owned by another thread.
 * If succeeds, prior  operations on the same object synchronize-with this operation (equivalent to release-acquire std).  does not synchronize with a failed
 * Does not throw exceptions.


 * The expression has the following properties
 * Behaves as an atomic operation.
 * Releases the calling thread's ownership of the mutex and synchronizes-with the subsequent successful lock operations on the same object.
 * The behavior is undefined if the calling thread does not own the mutex.
 * Does not throw exceptions.


 * All lock and unlock operations on a single mutex occur in a single total order that can be viewed as modification order of an atomic variable: the order is specific to this individual mutex.

Library types
The following standard library types satisfy :
 * std
 * std
 * std
 * std
 * std