Template:cpp/thread/mutex/lock

Locks the mutex. If another thread has already locked the mutex, a call to will block execution until the lock is acquired.

Prior unlock operations on the same mutex synchronize-with (as defined in std) this operation.

Parameters
(none)

Return value
(none)

Exceptions
Throws std when errors occur, including errors from the underlying operating system that would prevent from meeting its specifications. The mutex is not locked in the case of any exception being thrown.