Merged with trunk R1141
[ardour.git] / libs / pbd / pbd / rcu.h
index e81db8ba8717108d9cb8dcf110bb2fee219c4a74..a8f3cdd5bc72e5e5b23026ddcc7a6a9013b7736e 100644 (file)
@@ -17,7 +17,7 @@ class RCUManager
  
        virtual ~RCUManager() { delete m_rcu_value; }
  
-        boost::shared_ptr<T> reader () const { return *((boost::shared_ptr<T> *) g_atomic_pointer_get (&m_rcu_value)); }
+        boost::shared_ptr<T> reader () const { return *((boost::shared_ptr<T> *) g_atomic_pointer_get (the_pointer())); }
  
        virtual boost::shared_ptr<T> write_copy () = 0;
        virtual bool update (boost::shared_ptr<T> new_value) = 0;