| 155 | // inline Functions |
| 156 | |
| 157 | inline CacheVC * |
| 158 | new_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 | |
| 174 | inline int |
| 175 | free_CacheVCCommon(CacheVC *cont) |
no test coverage detected