1 unstable release

0.1.5 Mar 17, 2023

#564 in Unix APIs

Download history 1344/week @ 2024-07-20 593/week @ 2024-07-27 1165/week @ 2024-08-03 1072/week @ 2024-08-10 1315/week @ 2024-08-17 1924/week @ 2024-08-24 1624/week @ 2024-08-31 2116/week @ 2024-09-07 1023/week @ 2024-09-14 1659/week @ 2024-09-21 1146/week @ 2024-09-28 1944/week @ 2024-10-05 1458/week @ 2024-10-12 787/week @ 2024-10-19 1176/week @ 2024-10-26 1168/week @ 2024-11-02

4,802 downloads per month
Used in 11 crates (2 directly)

MIT/Apache

40KB
917 lines

raw_sync

Build Status crates.io mio Lines of Code

Pushed new version of raw_sync based on https://github.com/elast0ny/raw_sync-rs/pull/29 fix.

This crate provides a lightweight wrapper around OS synchronization primitives.

It was mainly developed to be used with the shared_memory crate for cross-process synchronization 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.

Dependencies

~2MB
~38K SLoC