C++ Language/Std/Multithreading/Locks

The mutually exclusive execution property of a critical section is provided by a "lock" synchronization primitive (type  with functions   and  ). The lock maintains a record of which thread called, and only that "owner-thread" is allowed to call.

Additional information about locks (includes interactive examples)