Skip to content
UPEEC

Locks

RAII wrappers that lock and unlock mutexes automatically.

Intermediate
Comments 0

std::scoped_lock lock(m1, m2); locks several mutexes without deadlock; std::unique_lock supports deferred locking and condition variables.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.