RAII helper like MutexLock that also permits releasing the mutex before destruction.

Synopsis

Declared in <absl/synchronization/mutex.h>

class ReleasableMutexLock;

Member Functions

Name

Description

ReleasableMutexLock [constructor]

Constructors

~ReleasableMutexLock [destructor]

Releases the held mutex if it has not already been released.

Release

Releases the held mutex before destruction. May be called at most once.

Created with MrDocs