Skip to main content

Module shared_time_point

Module shared_time_point 

Source
Expand description

SharedTimePointTile<T> - cross-process BSPA + Versioned tile with AVX2 SIMD snapshot-isolation scan.

Direct lift of the in-process TimePointTile to MMF. The SIMD code is unchanged because AVX2 instructions operate on memory addresses identically whether the address is stack-local or memory-mapped. Cross-process safety comes from atomic insert (CAS on the occupied bitmap) and atomic version writes; the SIMD scan is a pure read (no synchronization needed since version writes are AtomicU64 with Release semantics).

§Layout

+-----------------------------+
| TileHeader (64B)            |
|   - magic                   |
|   - capacity (always 16)    |
|   - payload_size            |
|   - occupied: AtomicU32     |
+-----------------------------+
| VersionedSlot[0] (64B)      |
|   - version: AtomicU64      |
|   - payload: [u8; 56]       |
+-----------------------------+
| ... 15 more slots           |
+-----------------------------+

Structs§

SharedTimePointTile
TileHeader
VersionedSlot

Enums§

TileError

Constants§

SLOT_PAYLOAD
TILE_CAP
TIME_POINT_MAGIC

Functions§

tile_file_size