0.11.2: First Google Tango release

This commit is contained in:
matlabbe
2016-02-15 19:35:24 -05:00
parent 8dc01c491b
commit c6a46a7238
415 changed files with 73300 additions and 3193 deletions
+5 -1
View File
@@ -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;
}