Deliver constrained notification before suspending a title #274

Manually merged
github merged 1 commit from github-bot/gh-274 into gh-pr/274/base 2026-12-06 00:55:43 +00:00 AGit
Owner

@⁠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 UTC

Desktop 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_callback on the upstream baseline. It exercises both the ordering and unregistering a pending callback during the first phase.

AI-assisted by GPT-6.2 Astra.

**@⁠yyc160** on GitHub · 2026-12-05 22:27 UTC · [original](https://github.com/gamingwithhomie/larp/pull/274) `yyc160:fix/constrain-before-suspend` → `main` · +106 −23 · 1 files · 1 commits · merged 2026-12-05 22:51 UTC Desktop 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_callback` on the upstream baseline. It exercises both the ordering and unregistering a pending callback during the first phase. AI-assisted by GPT-6.2 Astra.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 22:29:21 +00:00
github-bot changed target branch from main to gh-pr/274/base 2026-12-05 22:54:12 +00:00
github-bot referenced this pull request from a commit 2026-12-06 00:55:31 +00:00
github manually merged commit 6d5fe54233 into gh-pr/274/base 2026-12-06 00:55:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.