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

RCOS C++ CRC for class qmmgr

Name:

qmmgr

Comment:

Class encapsulates operations required to support shared memory, based on a FIFO list (and hides details of the double link list we don't need).

Collaborators:

struct sh_tag

Responsibilities:

 class QmMgr : private DblList {
  public:
    QmMgr (void);               
   ~QmMgr (void);
    BOOL  QmExists (char*, PMS*);         // check by name string
    BOOL  QmExists (UINT16, PMS*);        // check by block ID
    void  QmIncCnt (UINT16);              // increase usage count
    void  QmDecCnt (UINT16);              // decrease count, kill off if zero
    INT16 QmLength (UINT16);              // return block length
    BOOL  QmAdd (char*, UINT16);          // Create and append a new block
    BOOL  QmGet (UINT16, UINT16, INT16*); // read an int value
    BOOL  QmPut (UINT16, UINT16, INT16*); // write an int value
  };