Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::process::impl Class Reference

Public Member Functions

 impl ()
 
 ~impl ()
 

Public Attributes

std::shared_ptr< bp::child > child
 
std::shared_ptr< bp::pipe > _inp
 
std::shared_ptr< bp::pipe > _outp
 
std::shared_ptr< bp::pipe > _errp
 
buffered_istream_ptr _out
 
buffered_istream_ptr _err
 
buffered_ostream_ptr _in
 
bp::status stat
 
bp::context pctx
 
fc::future< int > _exited
 

Detailed Description

Definition at line 29 of file process.cpp.

Constructor & Destructor Documentation

◆ impl()

fc::process::impl::impl ( )
inline

Definition at line 32 of file process.cpp.

33 :stat( fc::asio::default_io_service() ){}
bp::status stat
Definition process.cpp:65

◆ ~impl()

fc::process::impl::~impl ( )
inline

Definition at line 35 of file process.cpp.

36 {
37 try
38 {
39 if( _in )
40 {
41 _in->close();
42 }
43 if( _exited.valid() && !_exited.ready())
44 {
45 //child->terminate();
46 _exited.wait();
47 }
48 }
49 catch(...)
50 {
51 wlog( "caught exception cleaning up process: ${except_str}", ("except_str",fc::except_str()) );
52 }
53 }
fc::future< int > _exited
Definition process.cpp:68
buffered_ostream_ptr _in
Definition process.cpp:63
#define wlog(FORMAT,...)
Definition logger.hpp:124
std::string except_str()
Here is the call graph for this function:

Member Data Documentation

◆ _err

buffered_istream_ptr fc::process::impl::_err

Definition at line 62 of file process.cpp.

◆ _errp

std::shared_ptr<bp::pipe> fc::process::impl::_errp

Definition at line 59 of file process.cpp.

◆ _exited

fc::future<int> fc::process::impl::_exited

Definition at line 68 of file process.cpp.

◆ _in

buffered_ostream_ptr fc::process::impl::_in

Definition at line 63 of file process.cpp.

◆ _inp

std::shared_ptr<bp::pipe> fc::process::impl::_inp

Definition at line 57 of file process.cpp.

◆ _out

buffered_istream_ptr fc::process::impl::_out

Definition at line 61 of file process.cpp.

◆ _outp

std::shared_ptr<bp::pipe> fc::process::impl::_outp

Definition at line 58 of file process.cpp.

◆ child

std::shared_ptr<bp::child> fc::process::impl::child

Definition at line 55 of file process.cpp.

◆ pctx

bp::context fc::process::impl::pctx

Definition at line 66 of file process.cpp.

◆ stat

bp::status fc::process::impl::stat

Definition at line 65 of file process.cpp.


The documentation for this class was generated from the following file: