mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
0.11.2: First Google Tango release
This commit is contained in:
@@ -121,7 +121,11 @@ public:
|
||||
rt = pthread_cond_wait(&_cond, &_waitMutex);
|
||||
}
|
||||
}
|
||||
_available -= n;
|
||||
if(rt == 0)
|
||||
{
|
||||
// only remove them if waiting did not fail
|
||||
_available -= n;
|
||||
}
|
||||
pthread_mutex_unlock(&_waitMutex);
|
||||
return rt == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user