mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 21:47:10 +00:00
reader_concurrency_semaphore: allow passing name to no-limit constructor
So tests can provide names for semaphores as well, making test output more clear.
This commit is contained in:
@@ -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<int>::max(),
|
||||
std::numeric_limits<ssize_t>::max(),
|
||||
"unlimited reader_concurrency_semaphore") {}
|
||||
std::move(name)) {}
|
||||
|
||||
~reader_concurrency_semaphore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user