AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Public Member Functions | |
AsyncProcessResultImplementation (std::string executable_, std::vector< std::string > args_, std::string logger_, std::string input_file_, bool secure) | |
AsyncProcessResultImplementation (AsyncProcessResultImplementation const &)=delete | |
AsyncProcessResultImplementation & | operator= (AsyncProcessResultImplementation const &)=delete |
AsyncProcessResultImplementation (AsyncProcessResultImplementation &&)=delete | |
AsyncProcessResultImplementation & | operator= (AsyncProcessResultImplementation &&)=delete |
int | StartProcess () |
void | SetFuture (std::future< int > result_) |
std::future< int > & | GetFutureResult () override |
void | Terminate () override |
Tries to terminate the process. More... | |
Public Member Functions inherited from Acore::AsyncProcessResult | |
virtual | ~AsyncProcessResult () |
virtual std::future< int > & | GetFutureResult ()=0 |
virtual void | Terminate ()=0 |
Tries to terminate the process. More... | |
Private Attributes | |
std::string const | executable |
std::vector< std::string > const | args |
std::string const | logger |
std::string const | input_file |
bool const | is_secure |
std::atomic< bool > | was_terminated |
Optional< std::shared_ptr< std::future< int > > > | result |
Optional< std::reference_wrapper< child > > | my_child |
|
inlineexplicit |
|
delete |
|
delete |
|
inlineoverridevirtual |
Returns the future which contains the result of the process as soon it is finished.
Implements Acore::AsyncProcessResult.
|
delete |
|
delete |
|
inline |
|
inline |
References args, ASSERT, Acore::CreateChildProcess(), executable, input_file, is_secure, logger, my_child, and was_terminated.
|
inlineoverridevirtual |
Tries to terminate the process.
Implements Acore::AsyncProcessResult.
References my_child, and was_terminated.
|
private |
Referenced by StartProcess().
|
private |
Referenced by StartProcess().
|
private |
Referenced by StartProcess().
|
private |
Referenced by StartProcess().
|
private |
Referenced by StartProcess().
|
private |
Referenced by StartProcess(), and Terminate().
|
private |
Referenced by GetFutureResult(), and SetFuture().
|
private |
Referenced by StartProcess(), and Terminate().