1 #ifndef valkkafsreader_HEADER_GUARD
2 #define valkkafsreader_HEADER_GUARD
64 std::map<IdNumber, SlotNumber> id_to_slot;
86 void setSlotId(SlotNumber slot, IdNumber
id);
87 void unSetSlotId(IdNumber
id);
90 void pullBlocks(std::list<std::size_t> block_list);
103 void pullBlocksCall(std::list<std::size_t> block_list);
Passes frames to a FrameFifo.
Definition: framefilter.h:530
A thread-safe combination of a fifo (first-in-first-out) queue and an associated stack.
Definition: framefifo.h:83
The mother class of all frame filters! FrameFilters are used to create "filter chains".
Definition: framefilter.h:44
A class for multithreading with a signaling system.
Definition: thread.h:87
std::string name
Name of the thread.
Definition: thread.h:116
ValkkaFS reader thread.
Definition: valkkafsreader.h:55
void sendSignal(ValkkaFSReaderSignalContext signal_ctx)
Insert a signal into the signal_fifo.
Definition: valkkafsreader.cpp:122
void handleSignals()
Call ValkkaFSReaderThread::handleSignal for every signal in the signal_fifo.
Definition: valkkafsreader.cpp:127
void pullBlocksPyCall(PyObject *pylist)
Request blocks with python list.
Definition: valkkafsreader.cpp:311
std::deque< ValkkaFSReaderSignalContext > signal_fifo
Redefinition of signal fifo.
Definition: valkkafsreader.h:73
void setSlotIdCall(SlotNumber slot, IdNumber id)
Set a id number => slot mapping.
Definition: valkkafsreader.cpp:234
void preRun()
Called before entering the main execution loop, but after creating the thread.
Definition: valkkafsreader.cpp:85
void reportSlotIdCall()
Print id number => slot mappings.
Definition: valkkafsreader.cpp:282
void postRun()
Called after the main execution loop exits, but before joining the thread.
Definition: valkkafsreader.cpp:88
void handleSignal(ValkkaFSReaderSignalContext &signal_ctx)
Handle an individual signal. Signal can originate from the frame fifo or from the signal_fifo deque.
Definition: valkkafsreader.cpp:91
FifoFrameFilter infilter
Write incoming frames here. Only for SignalFrames.
Definition: valkkafsreader.h:70
void run()
Main execution loop is defined here.
Definition: valkkafsreader.cpp:46
void requestStopCall()
API method: stops the thread.
Definition: valkkafsreader.cpp:340
void clearSlotIdCall()
Clear all id number => slot mappings.
Definition: valkkafsreader.cpp:268
void unSetSlotIdCall(IdNumber id)
Clear a id number => slot mapping.
Definition: valkkafsreader.cpp:252
FrameFifo infifo
Incoming frames are read from here. The stream is "stateless", so you have to add SetupFrames (for ex...
Definition: valkkafsreader.h:69
Book-keeping for ValkkaFS.
Definition: valkkafs.h:78
List of common header files.
Thread safe system of fifo and a stack.
Definition of FrameFilter and derived classes for various purposes.
Write directly to files and devices with POSIX O_DIRECT.
Describes the stack structure and fifo behaviour for a FrameFifo.
Definition: framefifo.h:56
Encapsulate data sent in the ValkkaFSReaderSignal.
Definition: threadsignal.h:220
Base class for multithreading.