typed_shmem
Exposes shared memory on *nix and Windows using mapped files. This work is heavily inspired on the shared_memory crate, but instead of being just a copy cat, typed_shmem provides a typed mapping into the shared memory region.
Usage
First, a process must create the shared region:
use typed_shmem as sh;
use ShMemErr;
use ShMemOps;
Then, any other process can join the same region:
use typed_shmem as sh;
use ShMemErr;
use ShMemOps;
To-Do (no specific order)
- Implement custom error instead of
Box<dyn Error>
ing everything. - Implement optional sharing/syncronization mechanisims.
- Check and rewrite the unsafe blocks (bugs there for sure).
- Create tests (using
fork()
in *nix (not sure)?; windows?). - More to come...
Contributions
All contributions to this project will be under Apache-2.0 license.