MCPcopy Create free account
hub / github.com/apache/trafficserver / set

Method set

include/tscore/IntrusivePtr.h:528–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526
527template <typename T>
528void
529IntrusivePtr<T>::set(T *obj)
530{
531 m_obj = obj; /* update to new object */
532 if (nullptr != m_obj) { /* if a real object, bump the ref count */
533 ++(m_obj->m_intrusive_pointer_reference_count);
534 }
535}
536
537template <typename T>
538void

Callers 3

IntrusivePtrMethod · 0.95
resetMethod · 0.95
splitOnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected