Skip to content

A Rust implementation of OS provided synchronization primitives

Notifications You must be signed in to change notification settings

cameronelliott/raw_sync-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raw_sync

Build Status crates.io mio Lines of Code

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.

About

A Rust implementation of OS provided synchronization primitives

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%