cppuhelper: fix double checked locking in getTypeEntries()

Change-Id: I73674f0293a57ed7c4d54aa6b68ff64d5ca4e7bd
This commit is contained in:
Michael Stahl 2017-08-21 23:05:09 +02:00
parent 20a7ffd848
commit eda41a271e

View File

@ -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;
}