Kea
1.9.9-git
|
Embodies a named pair of CriticalSection callbacks. More...
#include <multi_threading_mgr.h>
Public Types | |
typedef std::function< void()> | Callback |
Defines a callback as a simple void() functor. More... | |
Public Member Functions | |
CSCallbackPair (const std::string &name, const Callback &entry_cb, const Callback &exit_cb) | |
Constructor. More... | |
Public Attributes | |
Callback | entry_cb_ |
Entry point callback associated with name. More... | |
Callback | exit_cb_ |
Exit point callback associated with name. More... | |
std::string | name_ |
Name by which the callback can be found. More... | |
Embodies a named pair of CriticalSection callbacks.
This class associates a pair of callbacks, one to be invoked upon CriticalSection entry and the other invoked upon CriticalSection exit, with name. The name allows the pair to be uniquely identified such that they can be added and removed as needed.
Definition at line 29 of file multi_threading_mgr.h.
typedef std::function<void()> isc::util::CSCallbackPair::Callback |
Defines a callback as a simple void() functor.
Definition at line 31 of file multi_threading_mgr.h.
|
inline |
Constructor.
name | Name by which the callbacks can be found. |
entry_cb | Callback to invoke upon CriticalSection entry. |
entry_cb | Callback to invoke upon CriticalSection exit. |
Definition at line 38 of file multi_threading_mgr.h.
Callback isc::util::CSCallbackPair::entry_cb_ |
Entry point callback associated with name.
Definition at line 46 of file multi_threading_mgr.h.
Callback isc::util::CSCallbackPair::exit_cb_ |
Exit point callback associated with name.
Definition at line 49 of file multi_threading_mgr.h.
std::string isc::util::CSCallbackPair::name_ |
Name by which the callback can be found.
Definition at line 43 of file multi_threading_mgr.h.