#pragma once #include "exportapi.hpp" class Worker { /* 子进程的pid */ pid_t m_pid; bool m_busy; public: void handle(pid_t pid) const; };