Shared cancel flag.
More...
#include <background_scanner.hpp>
Shared cancel flag.
Worker function polls requested() at loop boundaries; callers invoke request() to stop the scan early.
◆ 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: