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 2c318a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cppcmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${PWD}/install \
-DLSL_UNITTESTS=ON \
-DLSL_BENCHMARKS=ON \
-DLSL_BUILD_EXAMPLES=ON \
-DCPACK_PACKAGE_DIRECTORY=${PWD}/package \
-Dlslgitrevision=${{ github.sha }} \
Expand Down
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 2c318a7

Please sign in to comment.