I managed to encapsule boost.thread into a class, in which I have a boost::thread worker, that runs a method as threadCode
boost::thread worker = boost::thread(boost::bind(&ThreadClass::executionLoop, this));
I want to do the same for a boost.process, in which a worker runs a method as independent process.
How can I do that?