Home | History | Annotate | Download | only in core

Lines Matching refs:unref

23     When an owner wants to release its reference, it calls unref(). When the
24 shared object's reference count goes to zero as the result of an unref()
63 // until previous owners are all totally done calling unref().
69 /** Increment the reference count. Must be balanced by a call to unref().
81 void unref() const {
129 void deref() const { this->unref(); }
138 before unref(), in case the two pointers point to the same object.
152 if (old_dst) old_dst->unref(); \
165 if (dst) dst->unref(); \
189 /** Check if the argument is non-null, and if so, call obj->unref()
193 obj->unref();
199 obj->unref();
217 // - unref() needs a release barrier, and an acquire if it's going to call delete.
221 void unref() const {
228 void deref() const { this->unref(); }
240 * Shared pointer class to wrap classes that support a ref()/unref() interface.
244 * may have its ref/unref be thread-safe, but that is not assumed/imposed by sk_sp.
266 * No call to ref() or unref() will be made.
274 * No call to ref() or unref() will be made.
279 * Calls unref() on the underlying object pointer.
290 * sk_sp previously had a reference to an object (i.e. not null) it will call unref() on that
305 * a reference to another object, unref() will be called on that object. No call to ref()
334 * Adopt the new bare pointer, and call unref() on any previously held object (if not null).
338 // Calling fPtr->unref() may call this->~() or this->reset(T*).
349 * No call to unref() will be made.