title: Locking a single bool variable when multithreading?
body: <p>Recently I have seen this code in a WebSite, and my question is the following:</p>
  
  <pre><code>        private bool mbTestFinished = false;
  
          private bool IsFinished()
          {
              lock( mLock )
              {
                  return mbTestFinished;
              }
          }
  
          internal void SetFinished()
          {
              lock( mLock )
              {
                  mbTestFinished = true;
              }
          }
  </code></pre>
  
  <p>In a multithread environment, is really necessary to lock the access to the <code>mbTestFinished</code>?</p>