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

#414 in Windows APIs

Download history 401/week @ 2025-08-27 576/week @ 2025-09-03 513/week @ 2025-09-10 383/week @ 2025-09-17 565/week @ 2025-09-24 435/week @ 2025-10-01 936/week @ 2025-10-08 2306/week @ 2025-10-15 2439/week @ 2025-10-22 8975/week @ 2025-10-29 10098/week @ 2025-11-05 6986/week @ 2025-11-12 5258/week @ 2025-11-19 10590/week @ 2025-11-26 7179/week @ 2025-12-03 7991/week @ 2025-12-10

32,130 downloads per month
Used in 10 crates

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