I think this the way to go. I’ll look at it a little later tonight. -- thorpej Sent from my iPhone.
> On Dec 26, 2018, at 4:11 PM, Taylor R Campbell > <campbell+netbsd-source-change...@mumble.net> wrote: > > 2. Chuck the job reference count altogether. Just use job_thread as a > proxy for whether it's in use. User must not call > threadpool_schedule_job concurrently with threadpool_job_destroy; > if a job may have been scheduled, user must cancel it before > destroying it.