#import <weak_nsobject.h>
Definition at line 107 of file weak_nsobject.h.
◆ containerForObject:threadChecker:
Definition at line 25 of file weak_nsobject.mm.
34 if (object == nil) {
35 return nullptr;
36 }
37
38
41 if (!sentinel) {
44 sentinel = newSentinel;
45 objc_setAssociatedObject(object, &sentinelObserverKey_, sentinel, OBJC_ASSOCIATION_RETAIN);
46
47
49 }
51}
#define FML_DCHECK(condition)
fml::RefPtr< fml::WeakContainer > container
RefPtr< T > AdoptRef(T *ptr)
◆ dealloc
Definition at line 25 of file weak_nsobject.mm.
62 {
63 _container->nullify();
64 [super dealloc];
65}
◆ initWithContainer:
Definition at line 25 of file weak_nsobject.mm.
55 self = [super init];
56 if (self) {
58 }
59 return self;
60}
◆ container
|
readatomicassignimplementation |
The documentation for this class was generated from the following files: