libe3 0.6.1
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
libe3::py::DAppSession::Impl Struct Reference

What a DAppSession holds: the agent, the event queue and the setup snapshot. More...

Public Member Functions

 Impl (libe3::E3Config config, std::size_t queue_capacity)
 Create the agent and the event queue.
void enqueue (E3Event ev)
 Queue an event for poll_events().

Public Attributes

std::unique_ptr< libe3::E3Agent > agent
 The dApp agent.
libe3::LockFreeQueue< E3Event > queue
 Events waiting for poll_events().
std::atomic< unsigned long long > dropped {0}
 Events dropped because the queue was full.
std::mutex setup_mu
 Guards have_setup and setup.
bool have_setup {false}
 Whether a setup response has been seen.
libe3::SetupResponse setup
 The latest setup response.

Detailed Description

What a DAppSession holds: the agent, the event queue and the setup snapshot.

Definition at line 40 of file e3_dapp_session.cpp.

Constructor & Destructor Documentation

◆ Impl()

libe3::py::DAppSession::Impl::Impl ( libe3::E3Config config,
std::size_t queue_capacity )
inlineexplicit

Create the agent and the event queue.

Parameters
configThe agent's configuration
queue_capacityNumber of events the queue holds

Definition at line 46 of file e3_dapp_session.cpp.

Member Function Documentation

◆ enqueue()

void libe3::py::DAppSession::Impl::enqueue ( E3Event ev)
inline

Queue an event for poll_events().

Parameters
evThe event; it is dropped, and counted, if the queue is full

Definition at line 66 of file e3_dapp_session.cpp.

Member Data Documentation

◆ agent

std::unique_ptr<libe3::E3Agent> libe3::py::DAppSession::Impl::agent

The dApp agent.

Definition at line 50 of file e3_dapp_session.cpp.

◆ dropped

std::atomic<unsigned long long> libe3::py::DAppSession::Impl::dropped {0}

Events dropped because the queue was full.

Definition at line 55 of file e3_dapp_session.cpp.

◆ have_setup

bool libe3::py::DAppSession::Impl::have_setup {false}

Whether a setup response has been seen.

Definition at line 59 of file e3_dapp_session.cpp.

◆ queue

libe3::LockFreeQueue<E3Event> libe3::py::DAppSession::Impl::queue

Events waiting for poll_events().

Definition at line 54 of file e3_dapp_session.cpp.

◆ setup

libe3::SetupResponse libe3::py::DAppSession::Impl::setup

The latest setup response.

Definition at line 60 of file e3_dapp_session.cpp.

◆ setup_mu

std::mutex libe3::py::DAppSession::Impl::setup_mu
mutable

Guards have_setup and setup.

Definition at line 58 of file e3_dapp_session.cpp.


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