| 203 | } |
| 204 | |
| 205 | VIO * |
| 206 | CacheVC::do_io_write(Continuation *c, int64_t nbytes, IOBufferReader *abuf, bool owner) |
| 207 | { |
| 208 | ink_assert(vio.op == VIO::WRITE); |
| 209 | ink_assert(!owner); |
| 210 | vio.set_reader(abuf); |
| 211 | vio.set_continuation(c); |
| 212 | vio.ndone = 0; |
| 213 | vio.nbytes = nbytes; |
| 214 | vio.vc_server = this; |
| 215 | #ifdef DEBUG |
| 216 | ink_assert(!c || c->mutex->thread_holding); |
| 217 | #endif |
| 218 | if (c && !trigger && !recursive) { |
| 219 | trigger = c->mutex->thread_holding->schedule_imm_local(this); |
| 220 | } |
| 221 | return &vio; |
| 222 | } |
| 223 | |
| 224 | void |
| 225 | CacheVC::do_io_close(int alerrno) |