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

Function new_CacheVC

src/iocore/cache/P_CacheInternal.h:157–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155// inline Functions
156
157inline CacheVC *
158new_CacheVC(Continuation *cont)
159{
160 EThread *t = cont->mutex->thread_holding;
161 CacheVC *c = THREAD_ALLOC(cacheVConnectionAllocator, t);
162 c->vector.data.data = &c->vector.data.fast_data[0];
163 c->_action = cont;
164 c->mutex = cont->mutex;
165 c->start_time = ink_get_hrtime();
166 c->setThreadAffinity(t);
167 ink_assert(c->trigger == nullptr);
168 static DbgCtl dbg_ctl{"cache_new"};
169 Dbg(dbg_ctl, "new %p", c);
170 dir_clear(&c->dir);
171 return c;
172}
173
174inline int
175free_CacheVCCommon(CacheVC *cont)

Callers 5

lookupMethod · 0.85
open_readMethod · 0.85
open_writeMethod · 0.85
removeMethod · 0.85
scanMethod · 0.85

Calls 2

ink_get_hrtimeFunction · 0.85
setThreadAffinityMethod · 0.80

Tested by

no test coverage detected