|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Tree-scoped source using only existing scheduler queues; no total/origin/runtime is required. More...
#include <window_source.hpp>
Public Member Functions | |
| ~WindowSource () | |
| Close on UI without joining workers. | |
| WindowSource (const WindowSource &)=delete | |
| WindowSource & | operator= (const WindowSource &)=delete |
| SourceStamp | stamp () const noexcept |
| std::expected< std::uint64_t, SourceError > | dataRevision () const |
| std::shared_ptr< SourceBudget > | budget () const noexcept |
| SourceCapabilities | capabilities () const noexcept |
| std::expected< WindowConsumer< T >, SourceError > | openConsumer () |
| WindowNotifier< T > | notifier () const noexcept |
| std::expected< PublishResult, SourceError > | notifyReady (SourceStamp source, std::uint64_t revision) const |
| void | close () noexcept |
| Retire admission/delivery on UI; old immutable owners remain charged until final release. | |
Static Public Member Functions | |
| static std::expected< std::unique_ptr< WindowSource >, SourceError > | create (WidgetTree &tree, Node< Widget > context, std::shared_ptr< WindowProvider< T > > provider, WindowSourceOptions options={}, std::shared_ptr< SourceBudget > budget={}) |
Tree-scoped source using only existing scheduler queues; no total/origin/runtime is required.
| T | Immutable row value with worker-safe final destruction and accounted dynamic page payload. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestatic |
| tree | UI tree; node scope retirement is checked before every later raw-tree access. |
| context | Node controlling delivery lifetime and frame admission. |
| provider | Worker-safe provider; external provider/domain storage is outside page accounting. |
| options | Positive page/work limits. |
| budget | Shared root; pass the old root for replacement sessions, null creates a default root. |
|
inline |
|
inlinenoexcept |
|
inline |
| source | Exact immutable session stamp. |
| revision | Strictly newer readiness/data revision. |
|
inline |
|
inlinenoexcept |