in reply to Blocking cond_signal until someone cond_waits

You need to read the docs a little more closely. From the POD (their emphasis):

The cond_wait function takes a locked variable as a parameter,

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Blocking cond_signal until someone cond_waits

Replies are listed 'Best First'.
Re^2: Blocking cond_signal until someone cond_waits
by bucky0 (Initiate) on Dec 19, 2006 at 18:16 UTC
    Oh, of course, in my actual code I have a lock on the lockvar. I just threw that together to further demonstrate what I was wanting to do.