Kea 2.7.5
isc::util::WriteLockGuard Class Reference

Write mutex RAII handler. More...

#include <readwrite_mutex.h>

+ Inheritance diagram for isc::util::WriteLockGuard:

Public Member Functions

 WriteLockGuard (ReadWriteMutex &rw_mutex)
 Constructor.
 
virtual ~WriteLockGuard ()
 Destructor.
 

Detailed Description

Write mutex RAII handler.

The constructor acquires the lock, the destructor releases it.

Definition at line 164 of file readwrite_mutex.h.

Constructor & Destructor Documentation

◆ WriteLockGuard()

isc::util::WriteLockGuard::WriteLockGuard ( ReadWriteMutex & rw_mutex)
inline

Constructor.

Parameters
rw_mutexThe write mutex.

Definition at line 170 of file readwrite_mutex.h.

References isc::util::ReadWriteMutex::writeLock().

+ Here is the call graph for this function:

◆ ~WriteLockGuard()

virtual isc::util::WriteLockGuard::~WriteLockGuard ( )
inlinevirtual

Destructor.

Definition at line 175 of file readwrite_mutex.h.

References isc::util::ReadWriteMutex::writeUnlock().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: