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

Method reenable

src/proxy/PluginVC.cc:317–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void
318PluginVC::reenable(VIO *vio)
319{
320 ink_assert(!closed);
321 ink_assert(magic == PLUGIN_VC_MAGIC_ALIVE);
322 ink_assert(vio->mutex->thread_holding == this_ethread());
323
324 Ptr<ProxyMutex> sm_mutex = vio->mutex;
325 SCOPED_MUTEX_LOCK(lock, sm_mutex, this_ethread());
326
327 Dbg(dbg_ctl_pvc, "[%u] %s: reenable %s", core_obj->id, PVC_TYPE, (vio->op == VIO::WRITE) ? "Write" : "Read");
328
329 if (vio->op == VIO::WRITE) {
330 ink_assert(vio == &write_state.vio);
331 need_write_process = true;
332 } else if (vio->op == VIO::READ) {
333 need_read_process = true;
334 } else {
335 ink_release_assert(0);
336 }
337 setup_event_cb(0, &sm_lock_retry_event);
338}
339
340void
341PluginVC::reenable_re(VIO *vio)

Callers 13

_do_http_requestMethod · 0.45
process_write_sideMethod · 0.45
InvokePluginExtMethod · 0.45
process_fetch_readMethod · 0.45
process_fetch_writeMethod · 0.45
ext_write_dataMethod · 0.45
ext_read_dataMethod · 0.45
mainEventMethod · 0.45
write_to_clientMethod · 0.45
ascii_responseMethod · 0.45
ascii_incr_decr_eventMethod · 0.45
stream_eventMethod · 0.45

Calls 1

this_ethreadFunction · 0.85

Tested by

no test coverage detected