goog opened this issue 3 years ago · 1 comments
bsem *has_jobs; why not just a condition variable?
Without looking into the implementation, I assume it's because has_jobs is essentially a counter of active threads. A condition variable wouldn't work since it would cap at 1 thread.
has_jobs