Skip to content

Commit

Permalink
another msvc error thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Jan 16, 2024
1 parent 1980339 commit 87548b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/param-queue-tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ namespace {

bool failed = false;

std::thread producer([&queue] {
std::thread producer([&queue, N] {
for (uint32_t i = 0; i < N; ++i)
queue.push(i);
});

std::thread consumer([&queue, &failed] {
std::thread consumer([&queue, &failed, N] {
uint32_t v = 0;
for (uint32_t i = 0; i < N; ++i) {
while (!queue.tryPop(v))
Expand Down

0 comments on commit 87548b7

Please sign in to comment.