Kea: isc::dhcp::ReceiverCriticalSection Class Reference

| Kea 3.2.0-git

isc::dhcp::ReceiverCriticalSection Class Reference

RAII class creating a critical section for the receiver thread. More...

`#include <iface_mgr.h>`

Inheritance diagram for isc::dhcp::ReceiverCriticalSection:
[legend]

## Public Member Functions
| ReceiverCriticalSection ()
| Constructor.
| ~ReceiverCriticalSection ()
| Destructor.

## Detailed Description

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.

## Constructor & Destructor Documentation

## ◆ ReceiverCriticalSection()

isc::dhcp::ReceiverCriticalSection::ReceiverCriticalSection | ( |  | ) |
| 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().

Here is the call graph for this function:

## ◆ ~ReceiverCriticalSection()

isc::dhcp::ReceiverCriticalSection::~ReceiverCriticalSection | ( |  | ) |
| 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().

Here is the call graph for this function:

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

- iface_mgr.h