diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2024-08-13 17:26:19 -0400 |
---|---|---|
committer | Rye Mutt <rye@alchemyviewer.org> | 2024-08-13 17:28:19 -0400 |
commit | 70f455347eafa802036cf4a90d903d139a0fd7e9 (patch) | |
tree | 5827de2ae699b6944889d8434c104ab3b8063aba /indra/llcommon/llsingleton.cpp | |
parent | 183b097072015fe83c751904d8133fa105717a5b (diff) |
Introduce tracy instrumentation of mutex in LLSingleton, LLInstanceTracker and logging
Diffstat (limited to 'indra/llcommon/llsingleton.cpp')
-rw-r--r-- | indra/llcommon/llsingleton.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llcommon/llsingleton.cpp b/indra/llcommon/llsingleton.cpp index d00e703a10..05dc3cde79 100644 --- a/indra/llcommon/llsingleton.cpp +++ b/indra/llcommon/llsingleton.cpp @@ -59,9 +59,8 @@ private: // it's safe to log -- which involves querying a different LLSingleton -- // which requires accessing the master list. typedef std::recursive_mutex mutex_t; - typedef std::unique_lock<mutex_t> lock_t; - - mutex_t mMutex; + LL_PROFILE_MUTEX_NAMED(mutex_t, mMutex, "Singleton MasterList"); + typedef std::unique_lock<decltype(mMutex)> lock_t; public: // Instantiate this to both obtain a reference to MasterList::instance() |