diff options
| author | Stefan Boberg <[email protected]> | 2026-03-20 00:10:22 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-03-20 00:10:22 +0100 |
| commit | acbec2de68598fd64179387158d4c808220241cf (patch) | |
| tree | 6e88c2aadd4b428887fec5bca96ed7fa0bf4d97d /scripts/test.lua | |
| parent | Fix HordeClient to use HttpClientAccessToken constructor (diff) | |
| download | zen-sb/compute-auth.tar.xz zen-sb/compute-auth.zip | |
Consolidate action map locks and fix immediate query visibilitysb/compute-auth
Replace three separate RwLocks (m_PendingLock, m_RunningLock,
m_ResultsLock) with a single m_ActionMapLock guarding all three action
maps. This eliminates lock-ordering requirements and prevents actions
from being temporarily absent from all maps during state transitions.
Additionally, insert actions into m_PendingActions immediately during
EnqueueResolvedAction so they are visible to GetActionResult and
FindActionResult right away, without waiting for the scheduler thread
to process the update. Previously, eager clients could get a spurious
404 if they queried before the scheduler's HandleActionUpdates ran.
Also adds debug logging for worker manifest, process launch and exit
on Windows, and ANSI color helper macros for log formatting.
Diffstat (limited to 'scripts/test.lua')
0 files changed, 0 insertions, 0 deletions