[hal] Add function for changing HAL Notifier thread priority (#3218)

This commit is contained in:
Tyler Veness
2021-02-28 22:05:26 -08:00
committed by GitHub
parent 40b367513f
commit 3cf44e0a53
8 changed files with 86 additions and 0 deletions

View File

@@ -200,3 +200,8 @@ void Notifier::UpdateAlarm(uint64_t triggerTime) {
void Notifier::UpdateAlarm() {
UpdateAlarm(static_cast<uint64_t>(m_expirationTime * 1e6));
}
bool Notifier::SetHALThreadPriority(bool realTime, int32_t priority) {
int32_t status = 0;
return HAL_SetNotifierThreadPriority(realTime, priority, &status);
}