#include <gcs_xcom_notification.h>
◆ Gcs_xcom_engine() [1/2]
Gcs_xcom_engine::Gcs_xcom_engine |
( |
| ) |
|
|
explicit |
Constructor for Gcs_xcom_engine.
◆ ~Gcs_xcom_engine()
Gcs_xcom_engine::~Gcs_xcom_engine |
( |
| ) |
|
Destructor for Gcs_xcom_engine.
◆ Gcs_xcom_engine() [2/2]
◆ cleanup()
void Gcs_xcom_engine::cleanup |
( |
| ) |
|
Clean up the notification queue and also forbid any incoming notitification to be added to the queue.
◆ finalize()
Finalize the notification processing by stopping the thread that is responsible for reading all incoming notifications.
Optionally, a callback function can be scheduled in order to do some clean up.
When the finalize has been executed the engine will not accept any new incoming notification, the processing thread will be stopped and the optional callback will be the last one called if there is any.
- Parameters
-
functor | Last callback function to be executed. |
◆ initialize()
Start the notification processing by spwaning a thread that will be responsible for reading all incoming notifications.
◆ operator=()
◆ process()
void Gcs_xcom_engine::process |
( |
| ) |
|
Process notifications from the incoming queue until an empty notifications comes in.
◆ push()
Push a notification to the queue.
- Parameters
-
notification | Pointer to notification to be queued. |
- Returns
- If the request was successfully enqueued true is returned, otherwise, false is returned.
◆ m_engine_thread
◆ m_notification_queue
◆ m_schedule
bool Gcs_xcom_engine::m_schedule |
|
private |
◆ m_wait_for_notification_cond
◆ m_wait_for_notification_mutex
The documentation for this class was generated from the following files: