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

Method clear

include/tscore/Ptr.h:257–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255
256template <class T>
257inline void
258Ptr<T>::clear()
259{
260 if (m_ptr) {
261 if (!m_ptr->refcount_dec()) {
262 m_ptr->free();
263 }
264 m_ptr = nullptr;
265 }
266}
267
268template <class T>
269inline Ptr<T> &

Callers 3

ResetMethod · 0.45
~InstanceMethod · 0.45
flushMethod · 0.45

Calls 2

refcount_decMethod · 0.80
freeMethod · 0.45

Tested by

no test coverage detected