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

Shared cancel flag. More...

#include <background_scanner.hpp>

Public Member Functions

void request ()
bool requested () const
void reset ()
 Clear the flag for a fresh run.

Detailed Description

Shared cancel flag.

Worker function polls requested() at loop boundaries; callers invoke request() to stop the scan early.

Member Function Documentation

◆ request()

void pulp::host::CancelToken::request ( )
inline

◆ requested()

bool pulp::host::CancelToken::requested ( ) const
inline

◆ reset()

void pulp::host::CancelToken::reset ( )
inline

Clear the flag for a fresh run.

Call only from the thread that owns the token (BackgroundScanner does this under its start lock).


The documentation for this class was generated from the following file: