Modifying AudioProcessor state from AudioProcessorEditor

I need to trigger the destruction and regeneration of a complex object that belongs to the AudioProcessor from the GUI. Is there a proper way to do this without running into all sorts of concurrency issues? While I’m at it, is it possible to safely to change the number (and name) of plugin parameters on the run?