Skip to content

Commit 2c318a7

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/cppcmake.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
-DCMAKE_BUILD_TYPE=Release \
5656
-DCMAKE_INSTALL_PREFIX=${PWD}/install \
5757
-DLSL_UNITTESTS=ON \
58+
-DLSL_BENCHMARKS=ON \
5859
-DLSL_BUILD_EXAMPLES=ON \
5960
-DCPACK_PACKAGE_DIRECTORY=${PWD}/package \
6061
-Dlslgitrevision=${{ github.sha }} \

testing/ext/bench_pushpull.cpp

Lines changed: 2 additions & 2 deletions
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)