Exemple #1
0
		void WeakReference::Flag::Invalidate() {
			// The flag being invalidated with a single ref implies that there are no
			// weak pointers in existence. Allow deletion on other thread in this case.
			DCHECK(sequence_checker_.CalledOnValidSequencedThread() || HasOneRef())
				<< "WeakPtrs must be invalidated on the same sequenced thread.";
			is_valid_ = false;
		}
Exemple #2
0
 void WeakReference::Flag::Invalidate()
 {
     // The flag being invalidated with a single ref implies that there are no
     // weak pointers in existence. Allow deletion on other thread in this case.
     DCHECK(thread_checker_.CalledOnValidThread() || HasOneRef());
     is_valid_ = false;
 }