Software-Pattern.org
Patterns
Categories
Books
Authors
About
Login
Scoped Locking
Synchronization Pattern
The Scoped Locking C++ idiom ensures that a lock is acquired when control enters a scope and released automatically when control leaves the scope, regardless of the return path from the scope.
Books
Pattern-Oriented Software Architecture Volume 2: Patterns for Concurrent and Networked Objects