diff options
| author | Andrey Lihatskiy <118752495+marchcat@users.noreply.github.com> | 2025-11-18 03:26:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-18 03:26:24 +0200 |
| commit | e8f2ec678285f15be9fd44550d9b967a9485d9f0 (patch) | |
| tree | cf444a5b3ad3041e36b3e11307b2c6907badabda /indra/llplugin/llpluginprocessparent.cpp | |
| parent | 2a620a9447b7d0544d5c500d88b4128565486018 (diff) | |
| parent | ceba070dcb42609ca267bdc5dac003db7aa2ad09 (diff) | |
Merge pull request #4997 from secondlife/marchcat/slua-2508
Update SLua editor with latest 2025.08
Diffstat (limited to 'indra/llplugin/llpluginprocessparent.cpp')
| -rw-r--r-- | indra/llplugin/llpluginprocessparent.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index afee099697..4f55d75e7d 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -982,14 +982,18 @@ void LLPluginProcessParent::poll(F64 timeout) } } - // Remove instances in the done state from the sInstances map. - mapInstances_t::iterator itClean = sInstances.begin(); - while (itClean != sInstances.end()) + if (sInstancesMutex) { - if ((*itClean).second->isDone()) - itClean = sInstances.erase(itClean); - else - ++itClean; + // Remove instances in the done state from the sInstances map. + LLCoros::LockType lock(*sInstancesMutex); + mapInstances_t::iterator itClean = sInstances.begin(); + while (itClean != sInstances.end()) + { + if ((*itClean).second->isDone()) + itClean = sInstances.erase(itClean); + else + ++itClean; + } } } |
