title: Do I need to add thread locking to simple variables?
body: <p>Let's say I have an object for which multiple threads can read/write to the <code>state</code> and <code>someValue</code> variables. Do I need to add locking if these variables are types like int, double, enums etc.?</p>
  
  <pre><code>enum State: String {
    case one
    case two
  }
  
  class Object {
    var state: State
    var someValue: Double
  }
  </code></pre>