skip to content
[readonly]
==> README.md <==
1# @ajax/mesh-shm
2
3The mailbox's memory: a zeroed MAILBOX_BYTES shared-memory file (a close-on-exec memfd on Linux; an unlinked `shm_open` on macOS) mapped `MAP_SHARED`, which native workers and MPS workers map too (`/proc/<pid>/fd/<fd>`).
4
5## Ported from
6
7[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/shm.rs.
8
9## Tests
10
11`tests/shm.c`: the Rust's `two_mappings_share_words` and `shared_with_a_child_process`, the `/proc` path, and a full-size mailbox.
12
13## Licence
14
15MIT. See the repository's LICENSE.