IPCWorker.h 330 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "IPC.h"
  3. #include "IPCChannel.h"
  4. namespace Atomic
  5. {
  6. class IPCWorker : public IPCChannel
  7. {
  8. OBJECT(IPCWorker);
  9. public:
  10. /// Construct.
  11. IPCWorker(int fd, Context* context);
  12. /// Destruct.
  13. virtual ~IPCWorker();
  14. void ThreadFunction();
  15. bool Update();
  16. private:
  17. int fd_;
  18. };
  19. }