31 template <
class Acquirable>
37 : acquirable_(acquirable)
39 acquirable_.acquire();
45 acquirable_.release();
49 Acquirable &acquirable_;
Guard< Mutex > MutexGuard
~Guard()
Releases the synchronization object upon destruction.
Guard< Semaphore > SemaphoreGuard
Guard(Acquirable &acquirable)
Acquires the given synchronization object upon initialization.
Performs automatic acquisition and release of a synchronization object.