Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::detail::FactoryCleanupScope Class Reference

Stack-only synchronous factory cleanup publication; empty nested scopes suspend attribution. More...

#include <ui_scene.hpp>

Public Member Functions

 FactoryCleanupScope (FactoryCleanup *collector=nullptr) noexcept
 FactoryCleanupScope (const FactoryCleanupScope &)=delete
FactoryCleanupScope & operator= (const FactoryCleanupScope &)=delete

Static Public Member Functions

static void retain (const ManagedError &failure) noexcept
static bool capturing () noexcept

Detailed Description

Stack-only synchronous factory cleanup publication; empty nested scopes suspend attribution.

Constructor & Destructor Documentation

◆ FactoryCleanupScope()

portals::ui::detail::FactoryCleanupScope::FactoryCleanupScope ( FactoryCleanup * collector = nullptr)
explicitnoexcept
Parameters
collectorStack-local record valid through this scope; null masks an outer factory.

Member Function Documentation

◆ capturing()

bool portals::ui::detail::FactoryCleanupScope::capturing ( )
staticnoexcept
Returns
Whether this thread is currently inside the exact user factory invocation.

◆ retain()

void portals::ui::detail::FactoryCleanupScope::retain ( const ManagedError & failure)
staticnoexcept
Parameters
failureActual destructor cleanup failure; no scene pointer or user callback is retained.

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