Deliver constrained notification before suspending a title #274
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!274
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-274"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@yyc160 on GitHub · 2026-12-05 22:27 UTC · original
yyc160:fix/constrain-before-suspend→main· +106 −23 · 1 files · 1 commits · merged 2026-12-05 22:51 UTCDesktop PSM does not deliver a constrained-change event merely because a title window closed. A title can register both APIs and wait in its suspend routine for preparation normally done in its constrained callback. Calling the suspend callback alone can run out its existing deadline.
Port the constrained-before-quiesced ordering from VIctory-NVIDIA's lifecycle implementation. Register both kinds locally; call outside the list lock. Unregistration prevents a later invocation and waits for an already-running callback on another thread. No change to the one-second deadline, user identity, save data, or relaunch command. This is not a promise of an application-level checkpoint on exit.
Tested
constrain_precedes_quiesce_and_can_cancel_a_later_callbackon the upstream baseline. It exercises both the ordering and unregistering a pending callback during the first phase.AI-assisted by GPT-6.2 Astra.