tech-kern archive

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

Re: How to destroy a condvar(9) with waiters?



   Date: Tue, 29 Dec 2015 07:29:44 +0100
   From: Stephan <stephanwib%googlemail.com@localhost>

   Thanks for your explanation. There are 2 condvars for the object - as
   far as I understand should one refcount be enough to make sure there
   are no waiters left on both, correct?

Yes, that should be fine.

You don't even need to use two condvars, really -- a single condvar
will work for all purposes!  It is at most a performance issue, if you
expect many waiters to be waiting for each of two different conditions
and you only want to wake those waiting for one of them.


Home | Main Index | Thread Index | Old Index