Memory-mapped FIFF file handle shared between cooperating processes / threads to avoid duplicate reads of large raw recordings. More...


Go to the source code of this file.
Classes | |
| class | FIFFLIB::FiffFileSharer |
| Refcounted memory-mapped view of a FIFF file shared between cooperating consumers. More... | |
Namespaces | |
| namespace | FIFFLIB |
| FIFF file I/O, in-memory data structures and high-level readers/writers. | |
Memory-mapped FIFF file handle shared between cooperating processes / threads to avoid duplicate reads of large raw recordings.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Large continuous FIFF recordings (multi-GB) are routinely opened by several cooperating components at once: the GUI viewer, the realtime processor, the recording dumper. FiffFileSharer wraps a memory-mapped view of the file and a small refcount so each consumer gets a zero-copy QByteArray view of the same backing pages, instead of every process pulling the data through its own QFile read.
Definition in file fiff_file_sharer.h.