tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: workqueue_drain



ozaki-r%netbsd.org@localhost (Ryota Ozaki) writes:

>On Wed, Dec 20, 2017 at 8:06 PM, Michael van Elst <mlelstv%serpens.de@localhost> wrote:
>> What about a method that waits for a specific work to complete?

>It might be useful but how it works in this case?

You could remember the last work enqueued and wait for it to finish
before destroying the queue. For this the wait function must handle
the case where the work already has finished.

I would consider such a function more versatile than just a drain function.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index