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

Method unset

include/tscore/IntrusivePtr.h:514–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512
513template <typename T>
514void
515IntrusivePtr<T>::unset()
516{
517 if (nullptr != m_obj) {
518 auto &cp = m_obj->m_intrusive_pointer_reference_count;
519
520 if (0 == --cp) {
521 IntrusivePtrPolicy<T>::finalize(m_obj);
522 }
523 m_obj = nullptr;
524 }
525}
526
527template <typename T>
528void

Callers 3

~IntrusivePtrMethod · 0.95
resetMethod · 0.95
IntrusivePtr.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected