4 ms·
Thank you for your answers, it is much appreciated. I suppose I will not use "quick_exit" either in that case, I have many workers, there is a job queue mutex,
by johnisgood 2y ago
Thank you for your answers, it is much appreciated.
I suppose I will not use "quick_exit" either in that case, I have many workers, there is a job queue mutex, along with phtread_cond_wait and phtread_mutex_{lock,unlock} and when the "job_quit_flag" is set to true, that means all jobs are done and I am ready to return NULL.