Skip to content

Commit 8d3810b

Browse files
committed
Increase buffer size to avoid race in the sample factory
1 parent 6c55ed2 commit 8d3810b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/ext/bench_pushpull.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ TEMPLATE_TEST_CASE("pushpull", "[basic][throughput]", char, double, std::string)
3030

3131
for (auto nchan : param_nchan) {
3232
lsl::stream_outlet out(
33-
lsl::stream_info(name, "PushPull", (int)nchan, lsl::IRREGULAR_RATE, cf, "streamid"));
33+
lsl::stream_info(name, "PushPull", (int)nchan, chunk_size, cf, "streamid"));
3434
auto found_stream_info(lsl::resolve_stream("name", name, 1, 2.0));
3535
REQUIRE(!found_stream_info.empty());
3636

3737
std::list<lsl::stream_inlet> inlet_list;
3838
for (auto n_inlets : param_inlets) {
3939
while (inlet_list.size() < n_inlets) {
40-
inlet_list.emplace_front(found_stream_info[0], 1, false);
40+
inlet_list.emplace_front(found_stream_info[0], 300, false);
4141
inlet_list.front().open_stream(.5);
4242
}
4343
std::string suffix(std::to_string(nchan) + "_inlets_" + std::to_string(n_inlets));

0 commit comments

Comments
 (0)