Is it safe to send ActionBroadcaster messages from time critical parts of code? (they will be received by non time critical threads)
For example, is there a danger that the message sending could block the thread for a short period of time when sending the message from:
void AudioAppComponent::getNextAudioBlock(const juce::AudioSourceChannelInfo& bufferToFill) ?
In addition to the memory allocation you spotted, the implementation of sendActionMessage locks at least two different CriticalSections. It’s possible that these critical sections will be locked at the point where the audio thread tries to claim them, which may lead to priority inversion issues. For these reasons I’d recommend against posting ActionBroadcaster messages from the realtime thread.