Skip to content

Conversation

tewalds
Copy link
Collaborator

@tewalds tewalds commented Apr 8, 2025

This supports both std::condition_variable and std::condition_variable_any. The downside is that it requires using std::unique_lock instead of std::lock_guard for lock, though using with lets you keep the speed of std::lock_guard.

@tewalds tewalds linked an issue Apr 8, 2025 that may be closed by this pull request
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (779d7fa) to head (5e8fb20).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #25   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           85        88    +3     
  Branches         6         6           
=========================================
+ Hits            85        88    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tewalds added 5 commits July 31, 2025 17:06
Unfortunately this means we must use std::unique_lock instead of std::lock_guard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to interact with condition variables
1 participant