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

Allocation-free current-thread setup context; nested independent scopes restore their parent. More...

#include <setup_failure.hpp>

Public Member Functions

 SetupFailureScope (std::weak_ptr< void > owner, SetupFailureSink sink, const char *execution) noexcept
 SetupFailureScope (const SetupFailureScope &)=delete
SetupFailureScope & operator= (const SetupFailureScope &)=delete

Static Public Member Functions

static SetupFailureTicket latch (ManagedError &failure, const void *attempt=nullptr) noexcept

Friends

class SetupFailurePause

Detailed Description

Allocation-free current-thread setup context; nested independent scopes restore their parent.

Constructor & Destructor Documentation

◆ SetupFailureScope()

portals::ui::detail::SetupFailureScope::SetupFailureScope ( std::weak_ptr< void > owner,
SetupFailureSink sink,
const char * execution )
inlinenoexcept
Parameters
ownerWeak stable facade publication, never a borrowed Scene or ManagedScene pointer.
sinkInternal non-throwing latch/delivery bridge, or null to suspend attribution.
executionLibrary static-storage execution label.

Member Function Documentation

◆ latch()

SetupFailureTicket portals::ui::detail::SetupFailureScope::latch ( ManagedError & failure,
const void * attempt = nullptr )
inlinestaticnoexcept
Parameters
failureOriginal error already stamped at an admitted collector entry, or an unavailable-target error.
attemptBorrowed entered-report stack identity, null when no collector was entered.
Returns
Synchronous completion/notification bridge; no retained scene ownership or allocation.

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