Portals 0.7.0 · dev0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::BackgroundPool Class Referencefinal
Explicit fixed worker owner for a synchronous run or host-owned lifetime. requestStop never joins; join is the explicit final synchronous boundary after UI retirement and terminal close attempt. Destruction also joins as a final safety net, so this type must never be owned by a scene, node, coroutine frame, or host callback. Inputs and cancelled pending jobs can be released on the calling host thread at final retirement; worker-safe deletion does not imply a bounded transitive payload destruction cost.
More...
Close admission, cancel owned jobs and wake workers independently of scheduler progress.
void
join () noexcept
Stop and join owned workers; may wait for cooperative user code, never services UI. Call from the owning synchronous host, never from one of this pool's workers.
Explicit fixed worker owner for a synchronous run or host-owned lifetime. requestStop never joins; join is the explicit final synchronous boundary after UI retirement and terminal close attempt. Destruction also joins as a final safety net, so this type must never be owned by a scene, node, coroutine frame, or host callback. Inputs and cancelled pending jobs can be released on the calling host thread at final retirement; worker-safe deletion does not imply a bounded transitive payload destruction cost.
Optional opaque worker-cache capability, borrowed for this executor's lifetime. Unsupported hosts return nullptr; no synchronous UI-owned cache fallback is permitted.