summaryrefslogtreecommitdiff
path: root/cppuhelper/source/implbase_ex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/implbase_ex.cxx')
-rw-r--r--cppuhelper/source/implbase_ex.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/cppuhelper/source/implbase_ex.cxx b/cppuhelper/source/implbase_ex.cxx
index 2b7b792e718a..d01f61983a91 100644
--- a/cppuhelper/source/implbase_ex.cxx
+++ b/cppuhelper/source/implbase_ex.cxx
@@ -105,9 +105,14 @@ static inline type_entry * getTypeEntries( class_data * cd )
// ref is statically held by getCppuType()
pEntry->m_type.typeRef = rType.getTypeLibType();
}
+ OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
cd->m_storedTypeRefs = true;
}
}
+ else
+ {
+ OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
+ }
return pEntries;
}