1 unstable release

0.1.5 Mar 17, 2023

#123 in Windows APIs

Download history 396/week @ 2023-12-14 98/week @ 2023-12-21 564/week @ 2023-12-28 1120/week @ 2024-01-04 702/week @ 2024-01-11 962/week @ 2024-01-18 1114/week @ 2024-01-25 772/week @ 2024-02-01 419/week @ 2024-02-08 961/week @ 2024-02-15 981/week @ 2024-02-22 1296/week @ 2024-02-29 715/week @ 2024-03-07 1214/week @ 2024-03-14 1394/week @ 2024-03-21 463/week @ 2024-03-28

4,131 downloads per month
Used in 9 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
~37K SLoC