|
|
@ -73,7 +73,7 @@ bool Scheduler::in_main_thread() const |
|
|
|
* time (due to the logic in SITL_State::wait_clock) and thus taking |
|
|
|
* time (due to the logic in SITL_State::wait_clock) and thus taking |
|
|
|
* the semaphore never times out - meaning we essentially deadlock. |
|
|
|
* the semaphore never times out - meaning we essentially deadlock. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
bool Scheduler::semaphore_wait_hack_required() |
|
|
|
bool Scheduler::semaphore_wait_hack_required() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (pthread_self() != _main_ctx) { |
|
|
|
if (pthread_self() != _main_ctx) { |
|
|
|
// only the main thread ever moves stuff forwards
|
|
|
|
// only the main thread ever moves stuff forwards
|
|
|
|