[hal,sim] Add notifier generation counter to WaitForProgramStart (#8947)

This fixes simulation WaitForProgramStart(true) potentially advancing
due to a stale or pre-start notifier created before SetProgramStarted()
was called.
This commit is contained in:
Peter Johnson
2026-06-06 12:17:14 -07:00
committed by GitHub
parent 6e5171cd8f
commit edf77fa007
3 changed files with 15 additions and 2 deletions

View File

@@ -4,10 +4,13 @@
#pragma once
#include <stdint.h>
namespace wpi::hal {
void PauseNotifiers();
void ResumeNotifiers();
void WakeupNotifiers();
void WaitNotifiers();
void WakeupWaitNotifiers();
uint64_t GetNotifierAlarmSetCount();
} // namespace wpi::hal