title: Multiple Threads - do i need to lock on reading data?
body: <p>look at this code:</p>
  
  <pre><code>int data=5;
  
  void Thread1()
  {
      if(data==5)
      {
         //nothing
      }
  }
  
  void Thread2()
  {
      if(data==2)
      {
         //nothing
      }
  }
  </code></pre>
  
  <p>in this case, do i need to use EnterCriticalSection/MutexLock before if(data==..) ? </p>