mutex::lock Method (STL)

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

void lock();

Remarks

If the calling thread already owns the mutex, the behavior is undefined.

Requirements

Header: mutex

Namespace: std

See Also

Reference

<mutex>

mutex Class (STL)

Other Resources

Header Files