mirror of
https://github.com/storytold/soundcraft.git
synced 2026-11-09 03:42:16 +00:00
On Windows and Linux on_main_thread() always said yes, so any thread could open, idle or close a CLAP editor, and an instance dropped on another thread destroyed its editor there. CLAP allows clap.gui calls on the main thread only. It now uses the rule the CLAP host's Windows window code and the VST3 host's module loading already use: the thread Rust names "main", where the app runs its UI. The editor tests check that another thread, named or not, is refused on every platform, and that a plugin dropped on another thread with its editor open warns and leaves the editor instead of destroying it there (the test plugin now allows that, and only that, at destroy). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>