• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Security-55471.14.18/include/security_utilities/

Lines Matching defs:?f

6  * This file contains Original Code and/or Modifications of Original Code
9 * compliance with the License. Please obtain a copy of the License at
58 CFClass::cleanupObject(intptr_t op, CFTypeRef cf, bool &zap)
63 bool isGC = CF_IS_COLLECTABLE(cf);
66 SecCFObject *obj = SecCFObject::optional(cf);
71 if (isGC)
75 if (op == -1 && oldCount == 0)
77 auto_zone_release(zone, (void*) cf);
79 else if (op == 1 && oldCount == 0 && currentCount == 1)
81 auto_zone_retain(zone, (void*) cf);
83 else if (op == -1 && oldCount == 1 && currentCount == 0)
86 To prevent accidental resurrection, just pull it out of the
90 auto_zone_release(zone, (void*) cf);
92 else if (op == 0)
100 if (op == 0)
104 else if (currentCount == 0)
106 // we may not be able to delete if the caller has active children
107 if (obj->mayDelete())
109 finalizeType(cf);
125 CFClass::refCountForType(intptr_t op, CFTypeRef cf) throw()
132 SecCFObject *obj = SecCFObject::optional(cf);
134 if (mutex == NULL)
136 // if the object didn't have a mutex, it wasn't cached.
138 result = cleanupObject(op, cf, zap);
144 result = cleanupObject(op, cf, zap);
147 if (zap) // did we release the object?
163 CFClass::finalizeType(CFTypeRef cf) throw()
170 In non-GC, we need to control the lifetime of the object. This means
171 that the cache lock has to be asserted while we are determining if the
175 In GC, GC figures out the lifetime of the object. We probably don't need
179 SecCFObject *obj = SecCFObject::optional(cf);
181 bool isCollectable = CF_IS_COLLECTABLE(cf);
186 if (mutex == NULL)
188 // if the object didn't have a mutex, it wasn't cached.
196 if (obj->isNew())
211 if (isCollectable)
229 CFClass::hashType(CFTypeRef cf) throw()
232 return SecCFObject::optional(cf)->hash();
239 CFClass::copyFormattingDescType(CFTypeRef cf, CFDictionaryRef dict) throw()
242 return SecCFObject::optional(cf)->copyFormattingDesc(dict);
249 CFClass::copyDebugDescType(CFTypeRef cf) throw()
252 return SecCFObject::optional(cf)->copyDebugDesc();