mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
166ac8f00a
This attribute indicates that all implementations of the interface must implement the `Sync` trait in Rust, meaning that they're safe to share between threads. This will make storing these values in threadsafe types in Rust more ergonomic. To implement this, the vtable types were changed to be `&'static` references rather than raw pointers. This should be OK as they are always valid non-null pointers to the VTable, and avoids the need for manual `unsafe impl`s for the relevant interfaces. Other interfaces will remain non-send and non-sync due to the marker type. Differential Revision: https://phabricator.services.mozilla.com/D183590 |
||
---|---|---|
.. | ||
gecko_logger | ||
gkrust_utils | ||
gtest | ||
malloc_size_of_derive | ||
moz_task | ||
nserror | ||
nsstring | ||
xpcom |