mirror of https://github.com/ArduPilot/ardupilot
AP_Avoidance: make all semaphores recursive
the cost is very similar and this prevents an easy coding error which can occur on less used code paths
This commit is contained in:
parent
1fac578b37
commit
3bb7c0e937
|
@ -206,7 +206,7 @@ private:
|
|||
AP_Float _warn_distance_z;
|
||||
|
||||
// multi-thread support for avoidance
|
||||
HAL_Semaphore_Recursive _rsem;
|
||||
HAL_Semaphore _rsem;
|
||||
|
||||
static AP_Avoidance *_singleton;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue