Skip to content

Commit

Permalink
Increase buffer size to avoid race in the sample factory
Browse files Browse the repository at this point in the history
  • Loading branch information
tstenner committed Nov 13, 2021
1 parent 6c55ed2 commit 8d3810b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/ext/bench_pushpull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<lsl::stream_inlet> 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));
Expand Down

0 comments on commit 8d3810b

Please sign in to comment.