Browse Source

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
zr-v5.1
Andrew Tridgell 5 years ago
parent
commit
3bb7c0e937
  1. 2
      libraries/AP_Avoidance/AP_Avoidance.h

2
libraries/AP_Avoidance/AP_Avoidance.h

@ -206,7 +206,7 @@ private: @@ -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…
Cancel
Save