shouldCheckState
should be std::atomic<bool>
, not bool
.
it triggers a Thread Sanitizer data race breakpoint in Xcode.
The timerCallback()
happens on the Message Thread
the handleNoteOn()
happens on the MIDI thread.
shouldCheckState
should be std::atomic<bool>
, not bool
.
it triggers a Thread Sanitizer data race breakpoint in Xcode.
The timerCallback()
happens on the Message Thread
the handleNoteOn()
happens on the MIDI thread.