# raw_sync
[](https://crates.io/crates/raw_sync)
[](https://docs.rs/raw_sync/)

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
|Mutex|Mutually exclusive lock|✔|✔|
|RwLock|Exclusive write/shared read|✔|X|
### Events
|Event| Generic event : [pthread_cond](https://linux.die.net/man/3/pthread_cond_init) on Unix and [Event Objects](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682655.aspx) on windows. |✔|✔|
|BusyEvent|Busy event implemented by polling a byte in a loop|✔|✔|
|EventFd|[Linux specific event type](http://man7.org/linux/man-pages/man2/eventfd.2.html)|TODO|N/A|
## License
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
* [MIT license](http://opensource.org/licenses/MIT)
## 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.