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

Function TSActionCancel

src/api/InkAPI.cc:5645–5670  ·  view source on GitHub ↗

Actions */

Source from the content-addressed store, hash-verified

5643
5644/* Actions */
5645void
5646TSActionCancel(TSAction actionp)
5647{
5648 Action *thisaction;
5649 INKContInternal *i;
5650
5651 // Nothing to cancel
5652 if (actionp == nullptr) {
5653 return;
5654 }
5655
5656 /* This is a hack. Should be handled in ink_types */
5657 if (reinterpret_cast<uintptr_t>(actionp) & 0x1) {
5658 thisaction = reinterpret_cast<Action *>(reinterpret_cast<uintptr_t>(actionp) - 1);
5659 if (thisaction) {
5660 i = static_cast<INKContInternal *>(thisaction->continuation);
5661 i->handle_event_count(EVENT_IMMEDIATE);
5662 } else { // The action pointer for an INKContInternal was effectively null, just go away
5663 return;
5664 }
5665 } else {
5666 thisaction = reinterpret_cast<Action *>(actionp);
5667 }
5668
5669 thisaction->cancel();
5670}
5671
5672// Currently no error handling necessary, actionp can be anything.
5673int

Callers 15

state_doneFunction · 0.85
accept_handlerFunction · 0.85
transform_destroyFunction · 0.85
cleanupFunction · 0.85
synclient_txn_deleteFunction · 0.85
synserver_stopFunction · 0.85
destroyContFunction · 0.85
cancelMethod · 0.85
~S3ConfigMethod · 0.85
schedule_conf_reloadMethod · 0.85
~WriteOperationMethod · 0.85

Calls 2

handle_event_countMethod · 0.80
cancelMethod · 0.45

Tested by 3

synclient_txn_deleteFunction · 0.68
synserver_stopFunction · 0.68