Skip to content

Glossary: C++ Beyond the Basics

Mutex

Also written: mutexes, std::mutex, mutual exclusion

A lock that only one thread at a time can hold. It protects bigger shared data such as a vector of tickets.

Where the book teaches it

Related terms

Lock guardCritical sectionDeadlockCondition variable