5 releases

0.1.5 Oct 13, 2020
0.1.4 Oct 13, 2020
0.1.2 May 11, 2020
0.1.1 May 7, 2020
0.1.0 May 7, 2020

#444 in Windows APIs

Download history 6037/week @ 2025-11-13 6016/week @ 2025-11-20 10193/week @ 2025-11-27 6835/week @ 2025-12-04 12787/week @ 2025-12-11 8576/week @ 2025-12-18 4575/week @ 2025-12-25 7757/week @ 2026-01-01 9189/week @ 2026-01-08 12236/week @ 2026-01-15 13409/week @ 2026-01-22 16778/week @ 2026-01-29 12843/week @ 2026-02-05 13450/week @ 2026-02-12 23904/week @ 2026-02-19 20406/week @ 2026-02-26

73,205 downloads per month
Used in 12 crates (11 directly)

MIT/Apache

38KB
851 lines

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.

Dependencies

~2MB
~40K SLoC