IPCWorker.h 364 B

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