Home | History | Annotate | Download | only in base

Lines Matching defs:instance

22 // Helper for GetOrCreateLazyPointer(). Checks if instance needs to be created.
24 // instance to be created and returns false.
27 // Helper for GetOrCreateLazyPointer(). After creating an instance, this is
44 // return nullptr if it doesn't want to create an instance anymore (e.g. on
47 // before |creator_func| may return a non-null instance again (ref.
66 // If any bit in the created mask is true, the instance has already been
71 // We will hopefully have fast access when the instance is already created.
77 subtle::AtomicWord instance = subtle::Acquire_Load(state);
78 if (!(instance & kLazyInstanceCreatedMask)) {
81 // instance and storing it back into |state|.
82 instance =
84 internal::CompleteLazyInstance(state, instance, destructor,
88 // instance (NeedsLazyInstance() doesn't return until the constructing
89 // thread releases the instance via CompleteLazyInstance()).
90 instance = subtle::Acquire_Load(state);
91 DCHECK(instance & kLazyInstanceCreatedMask);
94 return reinterpret_cast<Type*>(instance);