Lambda-based async updater (convenience).
More...
#include <coalesced_updater.hpp>
Lambda-based async updater (convenience).
◆ LambdaCoalescedUpdater()
| pulp::events::LambdaCoalescedUpdater::LambdaCoalescedUpdater |
( |
std::function< void()> | callback | ) |
|
|
inlineexplicit |
◆ cancel_update()
| void pulp::events::CoalescedUpdater::cancel_update |
( |
| ) |
|
|
inlineinherited |
◆ on_update()
| void pulp::events::LambdaCoalescedUpdater::on_update |
( |
| ) |
|
|
inlineoverridevirtual |
◆ process_pending()
| void pulp::events::CoalescedUpdater::process_pending |
( |
| ) |
|
|
inlineinherited |
Called by the event loop to process pending updates.
◆ request_update()
| void pulp::events::CoalescedUpdater::request_update |
( |
| ) |
|
|
inlineinherited |
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 |
|
inlineinherited |
Whether an update is pending.
The documentation for this class was generated from the following file: