title: Checking the value of pthread_cond_t
body: <p>I am trying to check the value of a variable of type pthread_cond_t in a while loop condition. </p>
  
  <p>The variable is defined in a node struct with the following form: </p>
  
  <pre><code>pthread_cond_t cv;
  </code></pre>
  
  <p>When I try to check the value of this using <code>!=</code> or <code>== NULL</code> I get errors that this can't be done. Here is what it looks like when I try to check it:</p>
  
  <pre><code>while(!node-&gt;cv) {
  </code></pre>
  
  <p>where <code>node</code> is a pointer to a struct containing the cv. </p>
  
  <p>I get the error "wrong argument type to unary exclamation mark, since I guess it's not a boolean. is there a way to check if this condition variable has value?</p>