-
Notifications
You must be signed in to change notification settings - Fork 7
process join
Alairion edited this page May 8, 2021
·
5 revisions
nes::process::join
(1) void join();
- Blocks the calling thread until the process ends. The process must be joinable. Once joined,
joinable()
returnsfalse
, andreturn_code()
returns the value of the process's return code.
None.
- None.
-
joinable()
returnstrue
.
-
joinable()
returnsfalse
.
- Throws a
std::runtime_error
if the process can not be joined or its return code can not be obtained.
- On Windows, calls
WaitForSingleObject
and thenGetExitCodeProcess
On Posix systems, callswaitpid