G3.1: dedicated bridge heartbeat — watchdog liveness independent of audio loop

This commit is contained in:
2026-08-16 10:04:16 +07:00
parent b59e416566
commit 30fa98a441
6 changed files with 186 additions and 31 deletions
+6
View File
@@ -55,4 +55,10 @@ struct SharedAudioBufferIPC {
// to extend its stall deadline — a long Nexus attach must not look like
// a dead bridge. Append-only field: existing offsets stay stable.
volatile uint32_t attachInFlight;
// G3.1: dedicated heartbeat, incremented every 100ms by a bridge-side
// thread INDEPENDENT of the audio loop. The Tauri watchdog keys bridge
// liveness on this, so a slow (but alive) audio loop no longer looks dead.
// Append-only field: existing offsets stay stable.
volatile uint32_t heartbeat;
};