mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
The HAL Notifier thread is started when the first Notifier is created and stopped when the last Notifier is destroyed. Currently, HAL_SetNotifierThreadPriority() will cause a segfault if the Notifier thread hasn't been started yet (that is, if no Notifier have been created yet). This change makes HAL_SetNotifierThreadPriority() store the RT and priority setting. If the thread has already been started, it will set the priority immediately. If it hasn't, HAL_InitializeNotifier() will set the priority when it starts the thread.