title: Thread safe getter of a value that never changes
body: <p>Is it safe to access class members from diffent threads simultaneously without mutexes if the value never changes? A value is simple pointer, so creating a copy has no effect on the original value. You can assume that <code>B</code> class itself is thread safe. <code>A</code> class can have other members, access to them will be syncronized using a mutex. </p>
  
  <pre><code>class A {
  public:
    A() { value = new B(); }
  
    // thread safe?
    B* get_value() { return value; }
  
  private:
    B* value; //never changes
  
  }
  </code></pre>