From eed580a09088a6bc33df236a46e2278e708b44c8 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Thu, 27 Dec 2018 10:36:56 +0100 Subject: [PATCH] Fix compiler warning --- src/cpp-utils/random/ThreadsafeRandomDataBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp-utils/random/ThreadsafeRandomDataBuffer.h b/src/cpp-utils/random/ThreadsafeRandomDataBuffer.h index a1047aa7..c9ee6938 100644 --- a/src/cpp-utils/random/ThreadsafeRandomDataBuffer.h +++ b/src/cpp-utils/random/ThreadsafeRandomDataBuffer.h @@ -54,7 +54,7 @@ namespace cpputils { inline size_t ThreadsafeRandomDataBuffer::_get(void *target, size_t numBytes) { boost::unique_lock lock(_mutex); - _dataAddedCv.wait(lock, [this, numBytes] { + _dataAddedCv.wait(lock, [this] { return _buffer.size() > 0; }); size_t gettableBytes = std::min(_buffer.size(), numBytes);