diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-01-15 18:31:17 +0200 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-01-15 18:31:17 +0200 |
commit | fa15830e02ed249186625e845e2ac19749d10193 (patch) | |
tree | 645e4916d97b28f678ca57810e9ecc19b5dd551b /indra/llcommon/llinstancetracker.h | |
parent | 346fc435f1b12e47b8bf51d15c70ceca4615de41 (diff) |
SL-10291 Replace apr_atomic with standard C++11 functionality
Diffstat (limited to 'indra/llcommon/llinstancetracker.h')
-rw-r--r-- | indra/llcommon/llinstancetracker.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/llcommon/llinstancetracker.h b/indra/llcommon/llinstancetracker.h index 910c8dbd99..363d0bcbd5 100644 --- a/indra/llcommon/llinstancetracker.h +++ b/indra/llcommon/llinstancetracker.h @@ -28,6 +28,7 @@ #ifndef LL_LLINSTANCETRACKER_H #define LL_LLINSTANCETRACKER_H +#include <atomic> #include <map> #include <typeinfo> @@ -81,8 +82,12 @@ protected: void decrementDepth(); U32 getDepth(); private: - U32 sIterationNestDepth; - }; +#ifdef LL_WINDOWS + std::atomic_uint32_t sIterationNestDepth; +#else + std::atomic_uint sIterationNestDepth; +#endif + }; }; LL_COMMON_API void assert_main_thread(); |