1 unstable release

0.1.5 Mar 17, 2023

#426 in Windows APIs

Download history 966/week @ 2025-09-17 998/week @ 2025-09-24 1254/week @ 2025-10-01 1745/week @ 2025-10-08 496/week @ 2025-10-15 2460/week @ 2025-10-22 1871/week @ 2025-10-29 1546/week @ 2025-11-05 1590/week @ 2025-11-12 1893/week @ 2025-11-19 1203/week @ 2025-11-26 988/week @ 2025-12-03 1580/week @ 2025-12-10 1905/week @ 2025-12-17 587/week @ 2025-12-24 971/week @ 2025-12-31

5,147 downloads per month
Used in 14 crates (via shared-memory-server)

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
~41K SLoC