Luna::JobSystem::wait_job

void wait_job(job_id_t job)

Blocks the current thread to wait for the job to finish.

Parameters

  • in job

    The job ID to wait. If this is INVALID_JOB_ID, this call returns immediately.