When trying to use the SingleInstance on Windows in the concurrent or asynchronous context the compilation errors are raised about data structure being not Send (and eventually Sync):
the trait `Send` is not implemented for `*mut c_void`
I think it is related to the internal implementation of single-instance. Would be nice if it's made Send + Sync explicitly on Windows.
When trying to use the
SingleInstance
on Windows in the concurrent or asynchronous context the compilation errors are raised about data structure being notSend
(and eventuallySync
):I think it is related to the internal implementation of single-instance. Would be nice if it's made
Send + Sync
explicitly on Windows.On macOS and Linux this doesn't happen.