Kea  2.1.7-git
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. More...
 
virtual ~WriteLockGuard ()
 Destructor. More...
 

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.

◆ ~WriteLockGuard()

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

Destructor.

Definition at line 175 of file readwrite_mutex.h.


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