Lines Matching refs:WeakPtr
51 WeakPtr<Target> target;
164 WeakPtr<TargetBase> b = object->target;
166 WeakPtr<TargetBase> c;
182 WeakPtr<int> ptr = factory.GetWeakPtr();
189 WeakPtr<int> ptr = factory.GetWeakPtr();
190 WeakPtr<int> ptr2 = ptr;
195 WeakPtr<int> ptr;
206 WeakPtr<int> a, b;
220 WeakPtr<int> a;
226 WeakPtr<int> b = factory.GetWeakPtr();
237 WeakPtr<Base> ptr = factory.GetWeakPtr();
246 WeakPtr<Base> ptr = factory.GetWeakPtr();
253 WeakPtr<Target> ptr = target.AsWeakPtr();
259 WeakPtr<DerivedTarget> ptr = AsWeakPtr(&target);
266 WeakPtr<int> ptr = factory.GetWeakPtr();
276 WeakPtr<int> ptr2 = factory.GetWeakPtr();
288 WeakPtr<int> ptr = factory.GetWeakPtr();
295 // Test that it is OK to create an object that supports WeakPtr on one thread,
297 // ensure that a WeakPtr is not used by multiple threads.
299 WeakPtr<Target> weak_ptr = target->AsWeakPtr();
304 // Test that it is OK to create an object that has a WeakPtr member on one
306 // checks that ensure that a WeakPtr is not used by multiple threads.
315 // on the original thread first, and then establish WeakPtr on a different
322 WeakPtr<Target> weak_ptr = target->AsWeakPtr();
323 // Main thread deletes the WeakPtr, then the thread ownership of the
328 // Background thread creates WeakPtr(and implicitly owns the object).
333 // Main thread creates another WeakPtr, but this does not trigger implicitly
338 // The new WeakPtr is owned by background thread.
354 // Background thread creates WeakPtr.
360 // Release the only WeakPtr.
398 // Originating thread has a WeakPtr that outlives others.
399 // - Main thread creates a WeakPtr
400 // - Background thread creates a WeakPtr copy from the one in main thread
401 // - Destruct the WeakPtr on background thread
402 // - Destruct the WeakPtr on main thread
418 // - Main thread creates a WeakPtr and passes copy to background thread
437 // - Main thread creates WeakPtr and passes Copy to background thread
439 // (invalidates WeakPtr on background thread)
440 // - WeakPtr gets destroyed on Thread B
461 // Background can copy and assign arrow (as well as the WeakPtr inside).
475 // Background can copy and assign arrow's WeakPtr to a base class WeakPtr.
489 // Background can delete arrow (as well as the WeakPtr inside).
511 // Background copies the WeakPtr.
519 // WeakPtr.