Kea  1.9.9-git
isc::util::CSCallbackPair Struct Reference

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...
 

Detailed Description

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.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

isc::util::CSCallbackPair::CSCallbackPair ( const std::string &  name,
const Callback entry_cb,
const Callback exit_cb 
)
inline

Constructor.

Parameters
nameName by which the callbacks can be found.
entry_cbCallback to invoke upon CriticalSection entry.
entry_cbCallback to invoke upon CriticalSection exit.

Definition at line 38 of file multi_threading_mgr.h.

Member Data Documentation

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.


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