cppuhelper: fix double checked locking in getTypeEntries()
Change-Id: I73674f0293a57ed7c4d54aa6b68ff64d5ca4e7bd
This commit is contained in:
parent
20a7ffd848
commit
eda41a271e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user