Skip to content

Explanations

You can use sharedbox without reading any of these pages. Read them when you want to know what happens inside a box: how it is kept in shared memory, how several processes can read and write it at once without getting in each other's way, and why it was built that way. Every word they use is defined in the glossary.

The work is split between two halves. The Python side decides which fields a box has and where each one sits. The C++ side, sharedbox.hpp, owns the shared memory, turns values into stored bytes and back, and makes sure a reader never sees a half-finished write. These pages explain the reasons; the exact byte layout and steps are written down in Segment layout.