Skip to content

Commit

Permalink
Join thread before calling cond var dtor to avoid race
Browse files Browse the repository at this point in the history
  • Loading branch information
padenot committed Mar 10, 2025
1 parent d8e8151 commit f8633c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_resampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1524,10 +1524,10 @@ TEST(cubeb, resampler_typical_uses)
common_init(&ctx, "Cubeb resampler test");

size_t concurrency = std::max(1u, std::thread::hardware_concurrency());
ThreadPool pool(concurrency);
std::mutex mutex;
std::condition_variable cv;
std::mutex mutex;
size_t task_count = 0;
ThreadPool pool(concurrency);

for (int source_rate : rates) {
for (int target_rate : rates) {
Expand Down

0 comments on commit f8633c0

Please sign in to comment.