Fix compiler warning

This commit is contained in:
Sebastian Messmer 2018-12-27 10:36:56 +01:00
parent 2449cc0790
commit eed580a090
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ namespace cpputils {
inline size_t ThreadsafeRandomDataBuffer::_get(void *target, size_t numBytes) {
boost::unique_lock<boost::mutex> lock(_mutex);
_dataAddedCv.wait(lock, [this, numBytes] {
_dataAddedCv.wait(lock, [this] {
return _buffer.size() > 0;
});
size_t gettableBytes = std::min(_buffer.size(), numBytes);