Fix data races

This commit is contained in:
badaix 2021-09-23 20:32:44 +02:00
parent c635a9cd01
commit 4df05105a9
8 changed files with 26 additions and 13 deletions

View file

@ -70,8 +70,8 @@ protected:
protected:
std::vector<std::shared_ptr<PcmStream>> streams_;
std::recursive_mutex active_mutex_;
std::shared_ptr<PcmStream> active_stream_;
// std::recursive_mutex mutex_;
std::unique_ptr<Resampler> resampler_;
bool first_read_;
std::chrono::time_point<std::chrono::steady_clock> next_tick_;