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
On trying to share the dataset object between multiple rayon threads for read/write operations, I get the following error: `*mut c_void` cannot be shared between threads safely within `{closure@src/lib.rs:218:19: 218:34}`, the trait `Sync` is not implemented for `*mut c_void` required because it appears within the type `&Dataset`
Using an Arc pointer along with a mutex introduces a lot of overhead and sometimes even slows down compared to the serial implementation.
Is there any support for sharing a dataset between multiple threads safely?
On trying to share the dataset object between multiple
rayon
threads for read/write operations, I get the following error:`*mut c_void` cannot be shared between threads safely within `{closure@src/lib.rs:218:19: 218:34}`, the trait `Sync` is not implemented for `*mut c_void` required because it appears within the type `&Dataset`
Using an
Arc
pointer along with a mutex introduces a lot of overhead and sometimes even slows down compared to the serial implementation.Is there any support for sharing a dataset between multiple threads safely?
cc: @rkshthrmsh
The text was updated successfully, but these errors were encountered: