Fix compiler warning
This commit is contained in:
parent
2449cc0790
commit
eed580a090
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user