/* * Copyright 2021, Andrew Lindesay . * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef THREADED_PROCESS_NODE_H #define THREADED_PROCESS_NODE_H #include "AbstractProcessNode.h" class AbstractProcess; class ThreadedProcessNode : public AbstractProcessNode { public: ThreadedProcessNode(AbstractProcess* process); virtual ~ThreadedProcessNode(); virtual status_t StartProcess(); virtual status_t StopProcess(); private: static status_t _StartProcess(void* cookie); thread_id fWorker; }; #endif // THREADED_PROCESS_NODE_H