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

#134 in Windows APIs

Download history 186/week @ 2024-11-25 227/week @ 2024-12-02 177/week @ 2024-12-09 204/week @ 2024-12-16 94/week @ 2024-12-23 124/week @ 2024-12-30 448/week @ 2025-01-06 302/week @ 2025-01-13 360/week @ 2025-01-20 1313/week @ 2025-01-27 436/week @ 2025-02-03 380/week @ 2025-02-10 317/week @ 2025-02-17 578/week @ 2025-02-24 353/week @ 2025-03-03 478/week @ 2025-03-10

1,758 downloads per month
Used in 7 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

~1.5–2MB
~40K SLoC