Date: Tue, 29 Dec 2015 07:29:44 +0100 From: Stephan <stephan...@googlemail.com>
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.