1 /* 2 * Copyright 2021, Andrew Lindesay <apl@lindesay.co.nz>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef THREADED_PROCESS_NODE_H 6 #define THREADED_PROCESS_NODE_H 7 8 9 #include "AbstractProcessNode.h" 10 11 12 class AbstractProcess; 13 14 15 class ThreadedProcessNode : public AbstractProcessNode { 16 public: 17 ThreadedProcessNode(AbstractProcess* process); 18 virtual ~ThreadedProcessNode(); 19 20 virtual status_t StartProcess(); 21 virtual status_t StopProcess(); 22 23 private: 24 static status_t _StartProcess(void* cookie); 25 26 thread_id fWorker; 27 }; 28 29 30 #endif // THREADED_PROCESS_NODE_H 31