raw_sync

Crates.ioraw_sync
lib.rsraw_sync
version0.1.5
sourcesrc
created_at2020-05-07 18:39:59.061993
updated_at2020-10-13 13:37:33.496324
descriptionLightweight wrapper around OS synchronization primitives
homepage
repositoryhttps://github.com/elast0ny/raw_sync-rs
max_upload_size
id238675
size51,825
elast0ny (elast0ny)

documentation

https://docs.rs/raw_sync

README

raw_sync

Build Status crates.io mio Lines of Code

This crate is provides a lightweight wrapper around OS synchronization primitives.

It was mainly developed to be used with the shared_memory crate for when cross-process synchronization is required through shared memory.

Features

Locks

Feature Description Linux Windows Mac
Mutex Mutually exclusive lock
RwLock Exclusive write/shared read X

Events

Feature Description Linux Windows Mac
Event Generic event : pthread_cond on Unix and Event Objects on windows.
BusyEvent Busy event implemented by polling a byte in a loop
EventFd Linux specific event type TODO N/A N/A

License

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.

Commit count: 45

cargo fmt