Browse Source

AP_HAL_VRBRAIN: make in_main_thread const and override

master
Peter Barker 8 years ago committed by Andrew Tridgell
parent
commit
9cb23f6108
  1. 2
      libraries/AP_HAL_VRBRAIN/Scheduler.cpp
  2. 1
      libraries/AP_HAL_VRBRAIN/Scheduler.h

2
libraries/AP_HAL_VRBRAIN/Scheduler.cpp

@ -370,7 +370,7 @@ void *VRBRAINScheduler::_storage_thread(void *arg) @@ -370,7 +370,7 @@ void *VRBRAINScheduler::_storage_thread(void *arg)
return nullptr;
}
bool VRBRAINScheduler::in_main_thread()
bool VRBRAINScheduler::in_main_thread() const
{
return getpid() == _main_task_pid;
}

1
libraries/AP_HAL_VRBRAIN/Scheduler.h

@ -55,6 +55,7 @@ public: @@ -55,6 +55,7 @@ public:
void resume_timer_procs();
void reboot(bool hold_in_bootloader);
bool in_main_thread() const override;
void system_initialized();
void hal_initialized() { _hal_initialized = true; }

Loading…
Cancel
Save