Lines Matching refs:nsMainThreadPtrHolder
167264 class nsMainThreadPtrHolder final
167272 explicit nsMainThreadPtrHolder(T* aPtr, bool aStrict = true)
167281 explicit nsMainThreadPtrHolder(already_AddRefed<T> aPtr, bool aString = true)
167291 ~nsMainThreadPtrHolder()
167311 bool operator==(const nsMainThreadPtrHolder<T>& aOther) const
167320 public: MozExternalRefCountType AddRef(void) { static_assert(!mozilla::IsDestructible<nsMainThreadPtrHolder<T> >::value, "Reference-counted class " "nsMainThreadPtrHolder<T>" " should not have a public destructor. " "Make this class's destructor non-public"); do { } while (0); nsrefcnt count = ++mRefCnt; ; return (nsrefcnt) count; } MozExternalRefCountType Release(void) { do { } while (0); nsrefcnt count = --mRefCnt; ; if (count == 0) { delete (this); return 0; } return count; } typedef mozilla::TrueType HasThreadSafeRefCnt; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public:
167331 T& operator=(nsMainThreadPtrHolder& aOther);
167332 nsMainThreadPtrHolder(const nsMainThreadPtrHolder& aOther);
167338 RefPtr<nsMainThreadPtrHolder<T>> mPtr;
167343 explicit nsMainThreadPtrHandle(nsMainThreadPtrHolder<T>* aHolder)
167348 already_AddRefed<nsMainThreadPtrHolder<T>> aHolder)
167361 nsMainThreadPtrHandle& operator=(nsMainThreadPtrHolder<T>* aHolder)
167410 using PtrHolder = nsMainThreadPtrHolder<T>;