mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_VRBRAIN: make in_main_thread const and override
# Conflicts: # libraries/AP_HAL_VRBRAIN/Scheduler.cpp # libraries/AP_HAL_VRBRAIN/Scheduler.h
This commit is contained in:
parent
8b472919da
commit
9d897f5da6
|
@ -375,6 +375,11 @@ bool VRBRAINScheduler::in_timerprocess()
|
|||
return getpid() != _main_task_pid;
|
||||
}
|
||||
|
||||
bool VRBRAINScheduler::in_main_thread() const
|
||||
{
|
||||
return getpid() == _main_task_pid;
|
||||
}
|
||||
|
||||
void VRBRAINScheduler::system_initialized() {
|
||||
if (_initialized) {
|
||||
AP_HAL::panic("PANIC: scheduler::system_initialized called"
|
||||
|
|
|
@ -56,6 +56,7 @@ public:
|
|||
void reboot(bool hold_in_bootloader);
|
||||
|
||||
bool in_timerprocess();
|
||||
bool in_main_thread() const override;
|
||||
void system_initialized();
|
||||
void hal_initialized() { _hal_initialized = true; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue