Skip to content

Commit

Permalink
Mark variable atomic as it is being altered in a separate thread
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Nov 10, 2024
1 parent 18a8c1d commit 1cc56ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <string>
#include <bitset>
#include <thread>
#include <atomic>

#ifdef HAVE_TSID
# if HAVE_TSID > 1
Expand Down Expand Up @@ -216,7 +217,7 @@ class ConsolePlayer
struct m_timer_t
{ // secs
uint_least32_t start;
uint_least32_t current;
std::atomic<uint_least32_t> current;
uint_least32_t stop;
uint_least32_t length;
bool valid;
Expand Down

0 comments on commit 1cc56ac

Please sign in to comment.