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

Method _signal_write_event

src/proxy/http3/Http3Transaction.cc:388–400  ·  view source on GitHub ↗

* @brief Signal event to this->_write_vio.cont */

Source from the content-addressed store, hash-verified

386 * @brief Signal event to this->_write_vio.cont
387 */
388void
389HQTransaction::_signal_write_event()
390{
391 if (this->_write_vio.cont == nullptr || this->_write_vio.op == VIO::NONE) {
392 return;
393 }
394 int event = this->_write_vio.ntodo() ? VC_EVENT_WRITE_READY : VC_EVENT_WRITE_COMPLETE;
395
396 SCOPED_MUTEX_LOCK(lock, this->_write_vio.mutex, this_ethread());
397 this->_write_vio.cont->handleEvent(event, &this->_write_vio);
398
399 Http3TransVDebug("%s (%d)", get_vc_event_name(event), event);
400}
401
402/**
403 * Deletes this transaction itself.

Callers 2

reenableMethod · 0.95
state_stream_openMethod · 0.80

Calls 4

this_ethreadFunction · 0.85
get_vc_event_nameFunction · 0.85
ntodoMethod · 0.80
handleEventMethod · 0.45

Tested by

no test coverage detected