#include <cosyfifo.h>
Inheritance diagram for cosyFifo:

| Public Member Functions | |
| cosyFifo (FifoImpl &f, cosyRte &r) | |
| void | read (void *p, unsigned int nitems) | 
| void | write (const void *p, unsigned int nitems) | 
| unsigned int | size () const | 
| unsigned int | data () const | 
| unsigned int | room () const | 
| Private Member Functions | |
| unsigned int | getMetricValue (FifoMetric m) | 
| unsigned int | calcSize (unsigned int lo, unsigned int hi, unsigned int s) | 
| bool | grow () | 
| Static Private Member Functions | |
| const char * | getMetricName (FifoMetric m) | 
| Private Attributes | |
| cosyRte * | rte | 
| unsigned int | minSize | 
| unsigned int | maxSize | 
| unsigned int | countw | 
| unsigned int | countr | 
| unsigned int | wcount | 
| unsigned int | rcount | 
| bqueue | q | 
| char * | wp | 
| char * | rp | 
| unsigned int | wn | 
| unsigned int | rn | 
| unsigned int | ws | 
| unsigned int | rs | 
| bool | block | 
| Semaphore | sema | 
| cosySelect * | sel | 
| Static Private Attributes | |
| unsigned int | defaultMinSize = 1 | 
| unsigned int | defaultMaxSize = 2*1024 | 
| unsigned int | defaultBytes = 512 | 
| Friends | |
| class | cosySelect | 
| class | cosyNetwork | 
| 
 | ||||||||||||
| 
 Definition at line 38 of file cosyfifo.cc. | 
| 
 | ||||||||||||||||
| 
 Definition at line 27 of file cosyfifo.cc. References cosyRte::cerr(), and rte. | 
| 
 | 
| 
 Definition at line 54 of file cosyfifo.cc. References bqueue::data(), and q. Referenced by getMetricValue(). | 
| 
 | 
| 
 Definition at line 212 of file cosyfifo.cc. References BytesRead, BytesWritten, Data, MaxSize, MinSize, NeededReadTokens, NeededWriteTokens, PendingReadTokens, PendingWriteTokens, ReadCalls, Room, Size, TokenSize, TokensPerRead, TokensPerWrite, TokensRead, TokensWritten, and WriteCalls. Referenced by cosyNetwork::printFifoMetrics(). | 
| 
 | 
| 
 Definition at line 237 of file cosyfifo.cc. References rteFifo::api(), BytesRead, BytesWritten, countr, countw, data(), Data, maxSize, MaxSize, minSize, MinSize, NeededReadTokens, NeededWriteTokens, PendingReadTokens, PendingWriteTokens, rcount, ReadCalls, rn, room(), Room, rs, size(), Size, FifoImpl::tokenSize(), TokenSize, TokensPerRead, TokensPerWrite, TokensRead, TokensWritten, wcount, wn, WriteCalls, and ws. Referenced by cosyNetwork::printFifoMetrics(). | 
| 
 | 
| 
 Definition at line 190 of file cosyfifo.cc. References block, countw, bqueue::data(), lock, maxSize, bqueue::put(), q, bqueue::resize(), sema, Semaphore::signal(), wn, and wp. Referenced by cosyNetwork::growFifo(). | 
| 
 | ||||||||||||
| 
 Implements rteFifo. Definition at line 76 of file cosyfifo.cc. References rteFifo::api(), block, countr, bqueue::data(), bqueue::get(), lock, q, rcount, rn, bqueue::room(), rp, rs, sel, sema, Semaphore::signal(), cosySelect::signal(), FifoImpl::tokenSize(), Semaphore::wait(), and wn. | 
| 
 | 
| 
 Definition at line 59 of file cosyfifo.cc. References q, and bqueue::room(). Referenced by getMetricValue(). | 
| 
 | 
| 
 Definition at line 49 of file cosyfifo.cc. References q, and bqueue::size(). Referenced by getMetricValue(). | 
| 
 | ||||||||||||
| 
 Implements rteFifo. Definition at line 133 of file cosyfifo.cc. References rteFifo::api(), block, countw, bqueue::data(), lock, bqueue::put(), q, rn, bqueue::room(), sel, sema, Semaphore::signal(), cosySelect::signal(), FifoImpl::tokenSize(), Semaphore::wait(), wcount, wn, wp, and ws. | 
| 
 | 
| 
 Definition at line 94 of file cosyfifo.h. | 
| 
 | 
| 
 Definition at line 85 of file cosyfifo.h. | 
| 
 | 
| 
 Definition at line 82 of file cosyfifo.h. Referenced by grow(), cosyNetwork::printProcessStatus(), read(), and write(). | 
| 
 | 
| 
 Definition at line 57 of file cosyfifo.h. Referenced by getMetricValue(), and read(). | 
| 
 | 
| 
 Definition at line 56 of file cosyfifo.h. Referenced by getMetricValue(), grow(), and write(). | 
| 
 | 
| 
 Definition at line 25 of file cosyfifo.cc. | 
| 
 | 
| 
 Definition at line 24 of file cosyfifo.cc. | 
| 
 | 
| 
 Definition at line 23 of file cosyfifo.cc. | 
| 
 | 
| 
 Definition at line 54 of file cosyfifo.h. Referenced by getMetricValue(), and grow(). | 
| 
 | 
| 
 Definition at line 53 of file cosyfifo.h. Referenced by getMetricValue(). | 
| 
 | 
| 
 Definition at line 72 of file cosyfifo.h. Referenced by data(), grow(), read(), room(), size(), and write(). | 
| 
 | 
| 
 Definition at line 59 of file cosyfifo.h. Referenced by getMetricValue(), and read(). | 
| 
 | 
| 
 Definition at line 77 of file cosyfifo.h. Referenced by getMetricValue(), cosyNetwork::printProcessStatus(), read(), and write(). | 
| 
 | 
| 
 Definition at line 74 of file cosyfifo.h. Referenced by read(). | 
| 
 | 
| 
 Definition at line 80 of file cosyfifo.h. Referenced by getMetricValue(), cosyNetwork::printProcessStatus(), and read(). | 
| 
 | 
| 
 Definition at line 51 of file cosyfifo.h. Referenced by calcSize(). | 
| 
 | 
| 
 Definition at line 86 of file cosyfifo.h. Referenced by cosyNetwork::printProcessStatus(), read(), and write(). | 
| 
 | 
| 
 Definition at line 83 of file cosyfifo.h. | 
| 
 | 
| 
 Definition at line 58 of file cosyfifo.h. Referenced by getMetricValue(), and write(). | 
| 
 | 
| 
 Definition at line 76 of file cosyfifo.h. Referenced by getMetricValue(), grow(), cosyNetwork::printProcessStatus(), read(), and write(). | 
| 
 | 
| 
 Definition at line 73 of file cosyfifo.h. | 
| 
 | 
| 
 Definition at line 79 of file cosyfifo.h. Referenced by getMetricValue(), cosyNetwork::printProcessStatus(), and write(). | 
 1.3.2
 
1.3.2