1 unstable release

0.1.5 Mar 17, 2023

#492 in Windows APIs

Download history 1136/week @ 2025-12-21 535/week @ 2025-12-28 1855/week @ 2026-01-04 1671/week @ 2026-01-11 1987/week @ 2026-01-18 1750/week @ 2026-01-25 978/week @ 2026-02-01 1402/week @ 2026-02-08 1979/week @ 2026-02-15 6591/week @ 2026-02-22 4956/week @ 2026-03-01 4037/week @ 2026-03-08 4393/week @ 2026-03-15 2371/week @ 2026-03-22 974/week @ 2026-03-29 1787/week @ 2026-04-05

9,920 downloads per month
Used in 7 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
~42K SLoC