diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-09-19 20:11:17 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-09-19 20:56:10 +0300 |
commit | 25969b330e4dc69f6eb39a487b171ccc07a5df14 (patch) | |
tree | db8a1e7b7f71e85dd6dac1cf41a5d693af619faa /indra/llcommon | |
parent | 7e4cdc30f3af701eb34306c124f1ce32f60c14ef (diff) |
viewer#2608 Crash at LLSnapshotLivePreview::getFormattedImage
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llmutex.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llcommon/llmutex.h b/indra/llcommon/llmutex.h index 6e8cf9643b..62943845a5 100644 --- a/indra/llcommon/llmutex.h +++ b/indra/llcommon/llmutex.h @@ -194,6 +194,18 @@ public: mSharedMutex->unlock<SHARED>(); } + void lock() + { + if (mSharedMutex) + mSharedMutex->lock<SHARED>(); + } + + void unlock() + { + if (mSharedMutex) + mSharedMutex->unlock<SHARED>(); + } + private: LLSharedMutex* mSharedMutex; }; |