Plugin Processor deletion always on message thread?


I am wondering: is it safe to assume, that the DAW will always destroy the plugin processor on the message thread? I mean: will the JUCE::AudioProcessor always be deleted from the message thread?

I recently asked as similar question about the editor (which Daniel kindly answered). But this one is about the processor.

Most likely not. There is no reason to do that on the message thread, so a sensible implementation would do it on a background thread.
There is even a callback, which plugins can implement to request not to be constructed on the message thread:
AudioPluginFormat::requiresUnblockedMessageThreadDuringCreation(const PluginDescription&)
(haven’t used that, but it is a strong indicator, that both is possible)

Thanks again for the fast answer :slight_smile: