Kea 2.5.8
isc::util::ReadLockGuard Class Reference

Read mutex RAII handler. More...

#include <readwrite_mutex.h>

+ Inheritance diagram for isc::util::ReadLockGuard:

Public Member Functions

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

Detailed Description

Read mutex RAII handler.

The constructor acquires the lock, the destructor releases it.

Definition at line 140 of file readwrite_mutex.h.

Constructor & Destructor Documentation

◆ ReadLockGuard()

isc::util::ReadLockGuard::ReadLockGuard ( ReadWriteMutex rw_mutex)
inline

Constructor.

Parameters
rw_mutexThe read mutex.

Definition at line 146 of file readwrite_mutex.h.

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

+ Here is the call graph for this function:

◆ ~ReadLockGuard()

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

Destructor.

Definition at line 151 of file readwrite_mutex.h.

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

+ Here is the call graph for this function:

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