Skip to content
Snippets Groups Projects
Commit 09352e8c authored by Philippe Canal's avatar Philippe Canal
Browse files

Add missing write lock guard in TObjArray::GetAbsLast.

This fixes ROOT-10057
parent 838c3a55
No related branches found
No related tags found
No related merge requests found
......@@ -546,9 +546,11 @@ Int_t TObjArray::GetAbsLast() const
if (fLast == -2) {
for (Int_t i = fSize-1; i >= 0; i--)
if (fCont[i]) {
R__COLLECTION_WRITE_LOCKGUARD(ROOT::gCoreMutex);
((TObjArray*)this)->fLast = i;
return fLast;
}
R__COLLECTION_WRITE_LOCKGUARD(ROOT::gCoreMutex);
((TObjArray*)this)->fLast = -1;
}
return fLast;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment