Browse Source

AP_HAL_QURT: make in_main_thread const and override

mission-4.1.18
Peter Barker 7 years ago committed by Andrew Tridgell
parent
commit
b7bfef3cdf
  1. 2
      libraries/AP_HAL_QURT/Scheduler.cpp
  2. 2
      libraries/AP_HAL_QURT/Scheduler.h

2
libraries/AP_HAL_QURT/Scheduler.cpp

@ -261,7 +261,7 @@ void *Scheduler::_io_thread(void *arg) @@ -261,7 +261,7 @@ void *Scheduler::_io_thread(void *arg)
return nullptr;
}
bool Scheduler::in_main_thread()
bool Scheduler::in_main_thread() const
{
return getpid() == _main_task_pid;
}

2
libraries/AP_HAL_QURT/Scheduler.h

@ -31,7 +31,7 @@ public: @@ -31,7 +31,7 @@ public:
void resume_timer_procs();
void reboot(bool hold_in_bootloader);
bool in_main_thread();
bool in_main_thread() const override;
void system_initialized();
void hal_initialized();

Loading…
Cancel
Save