|
libe3 0.6.1
C++ library for E3AP RAN vendor integration
|
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. | |
What a DAppSession holds: the agent, the event queue and the setup snapshot.
Definition at line 40 of file e3_dapp_session.cpp.
|
inlineexplicit |
Create the agent and the event queue.
| config | The agent's configuration |
| queue_capacity | Number of events the queue holds |
Definition at line 46 of file e3_dapp_session.cpp.
|
inline |
Queue an event for poll_events().
| ev | The event; it is dropped, and counted, if the queue is full |
Definition at line 66 of file e3_dapp_session.cpp.
| std::unique_ptr<libe3::E3Agent> libe3::py::DAppSession::Impl::agent |
The dApp agent.
Definition at line 50 of file e3_dapp_session.cpp.
| 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.
| 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.
| libe3::LockFreeQueue<E3Event> libe3::py::DAppSession::Impl::queue |
Events waiting for poll_events().
Definition at line 54 of file e3_dapp_session.cpp.
| libe3::SetupResponse libe3::py::DAppSession::Impl::setup |
The latest setup response.
Definition at line 60 of file e3_dapp_session.cpp.
|
mutable |
Guards have_setup and setup.
Definition at line 58 of file e3_dapp_session.cpp.