Skip to content

Commit

Permalink
AP_HAL_VRBRAIN: use HAL_SEMAPHORE_BLOCK_FOREVER
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and OXINARF committed May 1, 2017
1 parent f130b4a commit 85e5de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_VRBRAIN/Semaphores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 85e5de1

Please sign in to comment.