Kea  1.9.9-git
isc::util::UnlockGuard< Mutex > Class Template Reference

Unlock Guard. More...

#include <unlock_guard.h>

+ Inheritance diagram for isc::util::UnlockGuard< Mutex >:

Public Member Functions

 UnlockGuard (Mutex &lock)
 Constructor. More...
 ~UnlockGuard ()
 Destructor. More...

Detailed Description

template<typename Mutex>
class isc::util::UnlockGuard< Mutex >

Unlock Guard.

Acts as a reverse std::lock_guard.

Template Parameters
Mutexa mutex object.

Definition at line 21 of file unlock_guard.h.

Constructor & Destructor Documentation

template<typename Mutex>
isc::util::UnlockGuard< Mutex >::UnlockGuard ( Mutex &  lock)


Unlock mutex object on constructor.

lockthe mutex used for unlocking and locking.

Definition at line 28 of file unlock_guard.h.

template<typename Mutex>
isc::util::UnlockGuard< Mutex >::~UnlockGuard ( )


Lock mutex object on destructor.

Definition at line 35 of file unlock_guard.h.

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