1 unstable release
0.1.0 | Nov 1, 2021 |
---|
#5 in #boundaries
7KB
66 lines
remote-ref
This library allows sharing references to objects across thread boundaries,
even when those objects aren't Send
or Sync
. The objects themselves are
held in an ObjectStore
struct that isn't necessarily Send
/Sync
, and so
the objects can still only be actually used on the owning thread.
This differs from some other crates such as
fragile
or
send_wrapper
in that the access rule
is enforced at compile time, and that the ObjectStore
(currently) requires an
extra garbage collection function to be called manually.
lib.rs
:
This library allows sharing references to objects across thread boundaries,
even when those objects aren't Send
or Sync
. The objects themselves are
held in an ObjectStore
struct that isn't necessarily Send
/Sync
, and so
the objects can still only be actually used on the owning thread.
This differs from some other crates such as
fragile
or
send_wrapper
in that the access
rule is enforced at compile time, and that the ObjectStore
(currently)
requires an extra garbage collection function to be called manually.
Dependencies
~53KB