You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's a good suggestion. In my case the file system is implemented using sqlite3, which does not allow multiple threads and gives a compile-time error for not implementing Sync. My workaround was to manually implement Sync in the top-level struct and place a big fat warning saying it shouldn't be accessed concurrently, but a cleaner solution would be preferred.
Maybe one can opt-out threading, but gain ability to have
!Send + !Sync
filesystems?It can be a Cargo feature or some...
Workaround: set threads to 1 and
unsafe impl Send MyFs {} unsafe impl Sync for MyFs
.The text was updated successfully, but these errors were encountered: