Skip to content

Commit

Permalink
Added a TODO for another probably data race in effectprocessor.
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Oct 19, 2021
1 parent 926555d commit 3a283b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/effects/backends/effectprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ class EffectProcessorImpl : public EffectProcessor {
// m_channelStateMatrix may be accessed concurrently in the audio
// engine thread in loadStatesForInputChannel.

// TODO: How is ensure that the statMap is not accessed during this loop?
// This is called in responds to DISABLE_EFFECT_CHAIN_FOR_INPUT_CHANNEL
// and it looks like that the objects pointed by m_channelStateMatrix
// may be still in use.
// Probably related: https://bugs.launchpad.net/mixxx/+bug/1775497
ChannelHandleMap<EffectSpecificState*>& stateMap =
m_channelStateMatrix[*inputChannel];
for (EffectSpecificState* pState : stateMap) {
Expand Down

0 comments on commit 3a283b0

Please sign in to comment.