![]() |
Kea 3.2.0
|
RAII class creating a critical section for the receiver thread. More...
#include <iface_mgr.h>
Public Member Functions | |
| ReceiverCriticalSection () | |
| Constructor. | |
| ~ReceiverCriticalSection () | |
| Destructor. | |
RAII class creating a critical section for the receiver thread.
Node: Should be used outside IfaceMgr member functions as this might cause a deadlock then calling the members in the IfaceMgr constructor because this class uses IfaceMgr::instance() to access the singleton instance.
Definition at line 1867 of file iface_mgr.h.
|
inline |
Constructor.
Entering the critical section: if running, the receiver is stopped not clearing the packet queue.
Definition at line 1874 of file iface_mgr.h.
References isc::dhcp::IfaceMgr::instance(), and isc::dhcp::IfaceMgr::stopDHCPReceiver().
|
inline |
Destructor.
Leaving the critical section: if it was running, the receiver is started.
Definition at line 1885 of file iface_mgr.h.
References isc::dhcp::IfaceMgr::getFamily(), isc::dhcp::IfaceMgr::instance(), and isc::dhcp::IfaceMgr::startDHCPReceiver().