1 unstable release

0.1.5 Mar 17, 2023

#113 in Windows APIs

Download history 1117/week @ 2024-06-19 855/week @ 2024-06-26 1198/week @ 2024-07-03 1281/week @ 2024-07-10 2006/week @ 2024-07-17 875/week @ 2024-07-24 931/week @ 2024-07-31 1327/week @ 2024-08-07 1058/week @ 2024-08-14 1488/week @ 2024-08-21 1699/week @ 2024-08-28 2183/week @ 2024-09-04 1273/week @ 2024-09-11 1438/week @ 2024-09-18 1679/week @ 2024-09-25 1338/week @ 2024-10-02

6,198 downloads per month
Used in 11 crates (2 directly)

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