From 8d3810bec8403e7cd1171038f5fdf0eb060760d5 Mon Sep 17 00:00:00 2001 From: Tristan Stenner Date: Sat, 13 Nov 2021 12:19:38 +0100 Subject: [PATCH] Increase buffer size to avoid race in the sample factory --- testing/ext/bench_pushpull.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/ext/bench_pushpull.cpp b/testing/ext/bench_pushpull.cpp index 6b02fe66..4c2018f5 100644 --- a/testing/ext/bench_pushpull.cpp +++ b/testing/ext/bench_pushpull.cpp @@ -30,14 +30,14 @@ TEMPLATE_TEST_CASE("pushpull", "[basic][throughput]", char, double, std::string) for (auto nchan : param_nchan) { lsl::stream_outlet out( - lsl::stream_info(name, "PushPull", (int)nchan, lsl::IRREGULAR_RATE, cf, "streamid")); + lsl::stream_info(name, "PushPull", (int)nchan, chunk_size, cf, "streamid")); auto found_stream_info(lsl::resolve_stream("name", name, 1, 2.0)); REQUIRE(!found_stream_info.empty()); std::list inlet_list; for (auto n_inlets : param_inlets) { while (inlet_list.size() < n_inlets) { - inlet_list.emplace_front(found_stream_info[0], 1, false); + inlet_list.emplace_front(found_stream_info[0], 300, false); inlet_list.front().open_stream(.5); } std::string suffix(std::to_string(nchan) + "_inlets_" + std::to_string(n_inlets));