-
Notifications
You must be signed in to change notification settings - Fork 7
process active
Alairion edited this page May 8, 2021
·
4 revisions
nes::process::active
(1) bool active() const;
- Checks if the process is still running. The process must be joinable.
None.
- Returns
true
if the process is still running.
-
joinable()
returnstrue
.
- Constant.
- May throw a
std::runtime_error
if the state of the process can not be obtained.
- On Windows, returns
WaitForSingleObject(handle, 0) == WAIT_TIMEOUT
On Posix systems, returnskill(handle, 0) != ESRCH