[ C++ RCOS Home | RCOS.java Home | RCOS Home | David's Home ]

RCOS C++ CRC for class TreqstQ

Name:

TreqstQ

Comment:

Disk transfer requests are held in a FIFO queue based on (guess what?) We will use what Taligent term "implemenmtation inheritance", ie a private base class. Thie code rests with the Disk driver stuff..

Collaborators:

Responsibilities:

  class TreqstQ : private DblList {
    UINT16 nInq;
  public:
    TreqstQ (void) : nInq(0) { }
   ~TreqstQ (void) { }
    XfReq   *Get   (UINT16 = 0);
    XfReq   *Peek  (UINT16 = 0);
    void     Purge (UINT16 = 0);
    void     PurgeAll (void);
    UINT16   GetLen (void)  { return nInq; }
    void     Put (XfReq *p) { DblAppend((void*)p, sizeof(XfReq)); ++nInq; }
  };