From 88129f500f77ba70acaa7b064f35d73abd50fbdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Botond=20D=C3=A9nes?= Date: Thu, 23 Jul 2020 15:42:56 +0300 Subject: [PATCH] reader_concurrency_semaphore: allow passing name to no-limit constructor So tests can provide names for semaphores as well, making test output more clear. --- reader_concurrency_semaphore.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reader_concurrency_semaphore.hh b/reader_concurrency_semaphore.hh index 89a6fea969..29427c4e87 100644 --- a/reader_concurrency_semaphore.hh +++ b/reader_concurrency_semaphore.hh @@ -144,11 +144,11 @@ public: /// Create a semaphore with practically unlimited count and memory. /// /// And conversely, no queue limit either. - explicit reader_concurrency_semaphore(no_limits) + explicit reader_concurrency_semaphore(no_limits, sstring name = "unlimited reader_concurrency_semaphore") : reader_concurrency_semaphore( std::numeric_limits::max(), std::numeric_limits::max(), - "unlimited reader_concurrency_semaphore") {} + std::move(name)) {} ~reader_concurrency_semaphore();