cppuhelper: fix double checked locking in getTypeEntries()
Change-Id: I73674f0293a57ed7c4d54aa6b68ff64d5ca4e7bd
This commit is contained in:
@@ -105,9 +105,14 @@ static inline type_entry * getTypeEntries( class_data * cd )
|
|||||||
// ref is statically held by getCppuType()
|
// ref is statically held by getCppuType()
|
||||||
pEntry->m_type.typeRef = rType.getTypeLibType();
|
pEntry->m_type.typeRef = rType.getTypeLibType();
|
||||||
}
|
}
|
||||||
|
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
|
||||||
cd->m_storedTypeRefs = true;
|
cd->m_storedTypeRefs = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
|
||||||
|
}
|
||||||
return pEntries;
|
return pEntries;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user