Skip to content

Commit

Permalink
Notify all waiting threads
Browse files Browse the repository at this point in the history
  • Loading branch information
arekay committed Mar 28, 2024
1 parent 5475943 commit b7b3675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/metrics/export/periodic_exporting_metric_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ bool PeriodicExportingMetricReader::OnShutDown(std::chrono::microseconds timeout
{
// ensure that `cv_` is awaiting, and the update doesn't get lost
std::unique_lock<std::mutex> lk(cv_m_);
cv_.notify_one();
cv_.notify_all();
}
worker_thread_.join();
}
Expand Down

0 comments on commit b7b3675

Please sign in to comment.