You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OBJC_ASSOCIATION_COPY and OBJC_ASSOCIATION_COPY_NONATOMIC specifies that the associated object is copied, which means that the object has a strong reference to the associated value (in my understanding).
Is that any special consideration to ignore this reference in the function below? 🤔
staticvoidfb_objc_setAssociatedObject(id object, void *key, id value, objc_AssociationPolicy policy) {
{
std::lock_guard<std::mutex> l(*_associationMutex);
// Track strong references onlyif (policy == OBJC_ASSOCIATION_RETAIN ||
policy == OBJC_ASSOCIATION_RETAIN_NONATOMIC) {
_threadUnsafeSetStrongAssociation(object, key, value);
} else {
// We can change the policy, we need to clear out the key_threadUnsafeResetAssociationAtKey(object, key);
}
}
The text was updated successfully, but these errors were encountered:
OBJC_ASSOCIATION_COPY
andOBJC_ASSOCIATION_COPY_NONATOMIC
specifies that the associated object is copied, which means that the object has a strong reference to the associated value (in my understanding).Is that any special consideration to ignore this reference in the function below? 🤔
The text was updated successfully, but these errors were encountered: