X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGReferenced.hxx;h=6a3038f3576494619e6590144ce3d638d547be31;hb=200df49d6e2d8896e1deaa6da7af5b4a91058a4f;hp=003536a39fd542191e36819c0ee62c1212ba4414;hpb=8f9921d00c692573263a0215150e0892a9ffb68c;p=simgear.git diff --git a/simgear/structure/SGReferenced.hxx b/simgear/structure/SGReferenced.hxx index 003536a3..6a3038f3 100644 --- a/simgear/structure/SGReferenced.hxx +++ b/simgear/structure/SGReferenced.hxx @@ -14,13 +14,15 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #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