this is share memory impl multi process for rust
A Rust library for socket.
Usage
Add this to your Cargo.toml
:
[]
= "0.1"
and this to your crate root:
extern crate share_memory;
How to use
extern crate share_memory;
extern crate time;
use ShareMemory;
type ARRAY = ;
now it will print 1, if you start multi process, if you change the data
// unix为name和path_name得到共享内存的索引
// windows由name得到共享内存的索引,将忽略path_name
;
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
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.