Skip to content

Commit

Permalink
Merge pull request #13873 from m0dB/tsan-fix-pll-vars
Browse files Browse the repository at this point in the history
tsan fix pll vars data race
  • Loading branch information
daschuer authored Nov 10, 2024
2 parents 9112605 + 8b9b1bf commit cf95481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/waveform/vsyncthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class VSyncThread : public QThread {
// phase locked loop
std::mutex m_pllMutex;
PerformanceTimer m_pllTimer;
int m_pllInitCnt;
bool m_pllPendingUpdate;
std::atomic<int> m_pllInitCnt;
std::atomic<bool> m_pllPendingUpdate;
double m_pllInitSum;
double m_pllInitAvg;
double m_pllPhaseOut;
Expand Down

0 comments on commit cf95481

Please sign in to comment.