MCPcopy Create free account
hub / github.com/apache/brpc / execution_queue_cancel

Function execution_queue_cancel

src/bthread/execution_queue_inl.h:475–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473{}
474
475inline int execution_queue_cancel(const TaskHandle& h) {
476 if (h.node == NULL) {
477 return -1;
478 }
479 return h.node->cancel(h.version);
480}
481
482// ---------------------ExecutionQueueBase--------------------
483inline bool ExecutionQueueBase::_more_tasks(

Callers 5

test_cancelFunction · 0.85
cancel_selfFunction · 0.85
add_with_cancelFunction · 0.85
test_random_cancelFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_cancelFunction · 0.68
cancel_selfFunction · 0.68
add_with_cancelFunction · 0.68
test_random_cancelFunction · 0.68