pthreads-polyfill
pthreads-polyfill copied to clipboard
Worker::collect never ends
Not entirely sure why but Worker::collect
never returns 0, even when all jobs have been technically processed (ie. I know that they've all ran). It seems to boil down to jobs not being properly moved from Worker::$stacked
to Worker::$gc
, at least that's what I've found so far.
If I modify the method to only return count($this->gc)
all my jobs are processed and the loop ends, but I'm not sure if that's supposed to be correct?
bump. same issue here.