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

#129 in Windows APIs

Download history 304/week @ 2024-01-14 390/week @ 2024-01-21 422/week @ 2024-01-28 384/week @ 2024-02-04 569/week @ 2024-02-11 560/week @ 2024-02-18 519/week @ 2024-02-25 520/week @ 2024-03-03 442/week @ 2024-03-10 363/week @ 2024-03-17 383/week @ 2024-03-24 427/week @ 2024-03-31 351/week @ 2024-04-07 376/week @ 2024-04-14 377/week @ 2024-04-21 450/week @ 2024-04-28

1,577 downloads per month
Used in 4 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
~36K SLoC