CPP: How to wait on a job object?

This is the sample code in CPP to show how to wait on a job object. In the documentation:   The state of a job object is set to signaled when all of its processes are terminated because the specified end-of-job time limit has been exceeded. Use WaitForSingleObject or WaitForSingleObjectEx to monitor the job object…

0