#synchronization-primitive #pinned #mutex #guard #condvar #rwlock

pinned_sync

This crate implements pinned synchronization primitives

1 unstable release

0.0.1 Jul 1, 2021

#24 in #condvar

MIT/Apache

66KB
1K SLoC

Pinned synchronization primitives for Rust

This crate implements pinned synchronization primitives.

Limitations

As this is only a proof-of-concept and the goal is to have this in std, where we can better integrate with std codebase, there are some limitations to this crate, for example:

  • There is redundancy all around.
  • The guards for mutex and rwlock are not the same as the ones from std.
  • Therefore, we can not integrate Condvar with std primitives, or std Condvar with new primitives.

Tests and documentations are mostly copy-pasted from the std library.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~47KB