forked from OSchip/llvm-project
parent
28471eee1d
commit
29b5d3012b
|
@ -40,7 +40,7 @@ namespace sys {
|
|||
~Program();
|
||||
|
||||
/// Return process ID of this program.
|
||||
unsigned GetPid();
|
||||
unsigned GetPid() const;
|
||||
|
||||
/// This function executes the program using the \p arguments provided. The
|
||||
/// invoked program will inherit the stdin, stdout, and stderr file
|
||||
|
|
|
@ -38,7 +38,7 @@ Program::Program() : Data_(0) {}
|
|||
|
||||
Program::~Program() {}
|
||||
|
||||
unsigned Program::GetPid() {
|
||||
unsigned Program::GetPid() const {
|
||||
return reinterpret_cast<unsigned>(Data_);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ Program::~Program() {
|
|||
}
|
||||
}
|
||||
|
||||
unsigned Program::GetPid() {
|
||||
unsigned Program::GetPid() const {
|
||||
HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
|
||||
return GetProcessId(hProcess);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue