High level API to create and manage a processes.
More...
#include <Process.hpp>
|
static void | SetupCurrentProcess (int core=-1) |
| - Parameters
-
core | The core to bind the current process to, -1 means not set. |
|
|
static const String | GetCurrentFileName (void) |
| Returns the full qualified filename of the executable of the current process. More...
|
|
High level API to create and manage a processes.
◆ Process() [1/2]
Arp::System::Commons::Runtime::Process::Process |
( |
void |
| ) |
|
◆ Process() [2/2]
Arp::System::Commons::Runtime::Process::Process |
( |
const Process & |
arg | ) |
|
|
default |
◆ ~Process()
Arp::System::Commons::Runtime::Process::~Process |
( |
void |
| ) |
|
Destructs this instance and frees all resouces.
◆ GetCurrentFileName()
static const String Arp::System::Commons::Runtime::Process::GetCurrentFileName |
( |
void |
| ) |
|
|
static |
Returns the full qualified filename of the executable of the current process.
- Returns
- Filename of current process.
◆ HasExited()
bool Arp::System::Commons::Runtime::Process::HasExited |
( |
void |
| ) |
|
Checks if the process has terminated.
- Returns
- True if process is not running any more, otherwise false is returned.
◆ Kill()
void Arp::System::Commons::Runtime::Process::Kill |
( |
void |
| ) |
|
Posts a kill request to this process.
◆ operator=()
Process& Arp::System::Commons::Runtime::Process::operator= |
( |
const Process & |
arg | ) |
|
|
default |
◆ Start()
void Arp::System::Commons::Runtime::Process::Start |
( |
const String & |
workingDirectory, |
|
|
const String & |
path, |
|
|
const String & |
commandLineArgs = "" |
|
) |
| |
Starts a new separate process.
- Parameters
-
workingDirectory | Default working directory for the newly started process. |
path | Complete path to executable that should be executed by the new process. |
commandLineArgs | Optional command line arguments passed to the new process. |
◆ StartBlocking()
int Arp::System::Commons::Runtime::Process::StartBlocking |
( |
const String & |
workingDirectory, |
|
|
const String & |
path, |
|
|
const String & |
commandLineArgs, |
|
|
int & |
exitStatus |
|
) |
| |
Starts a new separate process. And waits until the child process exits
- Parameters
-
workingDirectory | Default working directory for the newly started process. |
path | Complete path to executable that should be executed by the new process. |
commandLineArgs | Optional command line arguments passed to the new process. |
exitStatus | stores exitStatus of process after call |
- Returns
- 0 on success, -1 on error starting process
The documentation for this class was generated from the following file: