Boost logo

Boost :

Subject: Re: [boost] [gsoc] Boost.Process done
From: Claude Quézel (cquezel_at_[hidden])
Date: 2011-02-01 16:37:59

I noticed that the boost::process::child does not have a default
constructor. If I have a coding requirements like the following
example, I would be stuck:

// Note the required default constructor
boost::process::child child;

// Create a scope for the mutex guard
    boost::lock_guard<boost::mutex> guard(process_launch);

   // Here I must do something within guard scope
   // that must be done with the boost::process::launch

   child = boost::process::launch(exec, args, ctx);

// ...

boost::process::status s = child.wait();

// ...

Boost list run by bdawes at, gregod at, cpdaniel at, john at