title: While calling SleepConditionVariableSRW() what should be the flag value to indicate that the SRW lock is in exclusive mode?
body: <p>The MSDN documentation for <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms686304.aspx" rel="nofollow">SleepConditionVariableSRW</a> states that -</p>
  
  <blockquote>
    <p>Flags [in] -<br>
    If this parameter is CONDITION_VARIABLE_LOCKMODE_SHARED,
    the SRW lock is in shared mode. Otherwise, the lock is in exclusive
    mode.</p>
  </blockquote>
  
  <p>From this I inferred that any value other than <strong>CONDITION_VARIABLE_LOCKMODE_SHARED</strong> will imply exclusive mode SRW lock. However, when I tried providing a flag value of <code>CONDITION_VARIABLE_LOCKMODE_SHARED + 1</code> the function <code>SleepConditionVariableSRW()</code> failed after a few tries.*</p>
  
  <p>I set the flags value as 0 and all the testcases involving <code>SleepConditionVariableSRW()</code> passed (over and over again).</p>
  
  <p>Can anybody confirm if the value of this flag is supposed to be '0' only to imply exclusive mode SRW lock? I couldn't find any mention of it in the MSDN documentation.</p>
  
  <p>* <em>I tried other non-zero values too.</em></p>