Expand description
The synchronizer module is the core component of the mmap-sync library, providing a Synchronizer struct for concurrent data access.
The Synchronizer offers a simple interface for reading and writing data from/to shared memory. It uses memory-mapped files and wait-free synchronization to provide high concurrency wait-free reads over a single writer instance. This design is inspired by the Left-Right concurrency control technique, allowing for efficient and flexible inter-process communication.
Furthermore, with the aid of the rkyv library, Synchronizer can perform zero-copy deserialization, reducing time and memory usage when accessing data.
Structs§
- Synchronizer
Synchronizeris a concurrency primitive that manages data access between a single writer process and multiple reader processes.
Enums§
- Synchronizer
Error SynchronizerErrorenumerates all possible errors returned by this library. These errors mainly represent the failures that might occur during reading or writing operations in data or state files.