Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jan 3, 2025
1 parent 4f61624 commit 9a8acdf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/lock_free_queue_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,9 @@ TEST(LockFreeMPMCQueue, test_lockfree_queue_bounded_push)

std::thread consumer([&]() {
int value;
while (!done) {
while (queue.pop(value)) {
++consumer_count;
std::this_thread::yield();
}
while (!done && queue.pop(value)) {
++consumer_count;
std::this_thread::yield();
}
while (queue.pop(value)) {
++consumer_count;
Expand Down

0 comments on commit 9a8acdf

Please sign in to comment.