From 08fe8e703ee90b1ec873bd7d05cb8e62dc93782b Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 8 Feb 2022 20:16:04 +0100 Subject: [PATCH] Explicitly guarantee no simultaneous editors exist --- src/plugin.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugin.rs b/src/plugin.rs index 50a31750..dcb67061 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -139,6 +139,9 @@ pub trait Editor: Send + Sync { /// This function should return a handle to the editor, which will be dropped when the editor /// gets closed. Implement the [Drop] trait on the returned handle if you need to explicitly /// handle the editor's closing behavior. + /// + /// The wrapper guarantees that a previous handle has been dropped before this function is + /// called again. // // TODO: Think of how this would work with the event loop. On Linux the wrapper must provide a // timer using VST3's `IRunLoop` interface, but on Window and macOS the window would