Coalescing async update — trigger from any thread, callback runs on event thread.
More...
#include <coalesced_updater.hpp>
Coalescing async update — trigger from any thread, callback runs on event thread.
Multiple triggers between callbacks are coalesced into a single call.
◆ CoalescedUpdater()
| pulp::events::CoalescedUpdater::CoalescedUpdater |
( |
| ) |
|
|
default |
◆ ~CoalescedUpdater()
| virtual pulp::events::CoalescedUpdater::~CoalescedUpdater |
( |
| ) |
|
|
virtualdefault |
◆ cancel_update()
| void pulp::events::CoalescedUpdater::cancel_update |
( |
| ) |
|
|
inline |
◆ on_update()
| virtual void pulp::events::CoalescedUpdater::on_update |
( |
| ) |
|
|
pure virtual |
◆ process_pending()
| void pulp::events::CoalescedUpdater::process_pending |
( |
| ) |
|
|
inline |
Called by the event loop to process pending updates.
◆ request_update()
| void pulp::events::CoalescedUpdater::request_update |
( |
| ) |
|
|
inline |
Trigger an async update.
Safe to call from any thread. If already triggered but not yet handled, the call is coalesced.
◆ update_pending()
| bool pulp::events::CoalescedUpdater::update_pending |
( |
| ) |
const |
|
inline |
Whether an update is pending.
The documentation for this class was generated from the following file: