mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_VRBRAIN: use HAL_SEMAPHORE_BLOCK_FOREVER
This commit is contained in:
parent
f130b4a580
commit
85e5de15c4
|
@ -15,7 +15,7 @@ bool Semaphore::give()
|
|||
|
||||
bool Semaphore::take(uint32_t timeout_ms)
|
||||
{
|
||||
if (timeout_ms == 0) {
|
||||
if (timeout_ms == HAL_SEMAPHORE_BLOCK_FOREVER) {
|
||||
return pthread_mutex_lock(&_lock) == 0;
|
||||
}
|
||||
if (take_nonblocking()) {
|
||||
|
|
Loading…
Reference in New Issue