rq.h 366 B

123456789101112131415161718
  1. #pragma once
  2. #include "rpc.h"
  3. namespace NNeh {
  4. class IRequestQueue {
  5. public:
  6. virtual ~IRequestQueue() {
  7. }
  8. virtual void Clear() = 0;
  9. virtual void Schedule(IRequestRef req) = 0;
  10. virtual IRequestRef Next() = 0;
  11. };
  12. typedef TAutoPtr<IRequestQueue> IRequestQueueRef;
  13. IRequestQueueRef CreateRequestQueue();
  14. }