mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-20 00:01:37 +08:00
The check is unnecessary. In the worst case the semaphore gets unlocked twice, but it's not an issue because the waiter is only interested in the first sem_post(), and the semaphore is then not used anymore.