v2.0.0
Loading...
Searching...
No Matches
fiff_file_sharer.h File Reference

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

#include "fiff_io.h"
#include <QFileSystemWatcher>
Include dependency graph for fiff_file_sharer.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

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

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

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.