#shmem #shared #memory #inter-process #process

raw_sync

Lightweight wrapper around OS synchronization primitives

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

#238 in Unix APIs

Download history 52/week @ 2021-09-29 20/week @ 2021-10-06 32/week @ 2021-10-13 31/week @ 2021-10-20 31/week @ 2021-10-27 23/week @ 2021-11-03 27/week @ 2021-11-10 16/week @ 2021-11-17 39/week @ 2021-11-24 34/week @ 2021-12-01 30/week @ 2021-12-08 14/week @ 2021-12-15 22/week @ 2021-12-22 25/week @ 2021-12-29 32/week @ 2022-01-05 41/week @ 2022-01-12

121 downloads per month
Used in 3 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

~7–415KB