Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::events::LambdaCoalescedUpdater Class Reference

Lambda-based async updater (convenience). More...

#include <coalesced_updater.hpp>

Public Member Functions

 LambdaCoalescedUpdater (std::function< void()> callback)
void on_update () override
 Override this to handle the async update (runs on event thread).
void request_update ()
 Trigger an async update.
void cancel_update ()
 Cancel a pending update.
bool update_pending () const
 Whether an update is pending.
void process_pending ()
 Called by the event loop to process pending updates.

Detailed Description

Lambda-based async updater (convenience).

Constructor & Destructor Documentation

◆ LambdaCoalescedUpdater()

pulp::events::LambdaCoalescedUpdater::LambdaCoalescedUpdater ( std::function< void()> callback)
inlineexplicit

Member Function Documentation

◆ cancel_update()

void pulp::events::CoalescedUpdater::cancel_update ( )
inlineinherited

Cancel a pending update.

◆ on_update()

void pulp::events::LambdaCoalescedUpdater::on_update ( )
inlineoverridevirtual

Override this to handle the async update (runs on event thread).

Implements pulp::events::CoalescedUpdater.

◆ 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: