Share via


recursive_mutex::lock Method

Blocks the calling thread until the thread obtains ownership of the mutex.

void lock();

Remarks

If the calling thread already owns the mutex, the method returns immediately, and the previous lock remains in effect.

Requirements

Header: mutex

Namespace: std

See Also

Reference

recursive_mutex Class

<mutex>