1: 
   2: 
   3: /*************
   4: *            *
   5: *  SENTINEL  *
   6: *            *
   7: *************/
   8: 
   9: 
  10: #ifndef WWWI_MIND_REQUESTTABLE_H 
  11: #define WWWI_MIND_REQUESTTABLE_H 
  12: 
  13: 
  14: /**********************
  15: *                     *
  16: *  COMPILER INCLUDES  *
  17: *                     *
  18: **********************/
  19: 
  20: 
  21: #include <hash_map> 
  22: 
  23: 
  24: /*********************
  25: *                    *
  26: *  PROJECT INCLUDES  *
  27: *                    *
  28: *********************/
  29: 
  30: 
  31: #include "mind.h" 
  32: #include "request.h" 
  33: #include "wwwi/mutex.h" 
  34: 
  35: 
  36: /**********************
  37: *                     *
  38: *  TYPE DECLARATIONS  *
  39: *                     *
  40: **********************/
  41: 
  42: 
  43: typedef hash_multimap<unsigned short,RequestPtr> RequestMap;
  44: 
  45: 
  46: /***********************
  47: *                      *
  48: *  CLASS REQUESTTABLE  *
  49: *                      *
  50: ***********************/
  51: 
  52: 
  53: class RequestTable {
  54: public:
  55:   void Add(RequestPtr i_rqp);
  56:   bool IsInTable(RequestPtr i_rqp);
  57: 
  58: protected:
  59:   RequestMap  m_rm;
  60:   Mutex       m_mutex;
  61: };
  62: 
  63: 
  64: /************
  65: *           *
  66: *  THE END  *
  67: *           *
  68: ************/
  69: 
  70: 
  71: #endif 
  72: 
  73: 
  74: