]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGReferenced.hxx
Fix wrong difference calculation in SGExpression
[simgear.git] / simgear / structure / SGReferenced.hxx
index 13f929954b48df485cb0c21e581f810702d26f3a..6a3038f3576494619e6590144ce3d638d547be31 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef SGReferenced_HXX
 #define SGReferenced_HXX
 
+#include "SGAtomic.hxx"
+
 /// Base class for all reference counted SimGear objects
 /// Classes derived from this one are meant to be managed with
 /// the SGSharedPtr class.
@@ -47,7 +49,7 @@ public:
   { if (ref) return 1u < ref->_refcount; else return false; }
 
 private:
-  mutable unsigned _refcount;
+  mutable SGAtomic _refcount;
 };
 
 #endif