Pithikos/C-Thread-Pool

why do you define bsem *has_jobs; ?

goog opened this issue · 1 comments

goog commented

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.