Class Fifo: implements Fifos in shared memory that allows user processes to access for read and write.
Class Fifo: implements Fifos in shared memory that allows user processes to access for read and write.Each Fifo is a class whose member functions regulate the access to it. The Fifos have to be accessible to every process that participates in the DD pool, therefore they are located in shared memory. In order to avoid subleties with objects in shared memory, Fifos are very simple objects (no inheritance, no templates, no exceptions, hence no virtual tables).
The shared memory where the Fifos are located is created by a static member function create_fifo_system.
The new operator of the Fifo is overloaded to place a new fifo into a free slot in the shared memory segment.
fifo_sys_header: header at beginning of shared memory segment followed by array of fifos.
Each fifo has internally:
1. a header (a struct) : containing name, type, status, struct mode, nb of processes attached etc etc
2. read/write pointers : point to next location to read/write an array of fifo entries (struct fentry)
Modifications:
Alphabetic index HTML hierarchy of classes or Java