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

Function execution_queue_stop

src/bthread/execution_queue_inl.h:420–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418
419template <typename T>
420inline int execution_queue_stop(ExecutionQueueId<T> id) {
421 typename ExecutionQueue<T>::scoped_ptr_t
422 ptr = ExecutionQueue<T>::address(id);
423 if (ptr != NULL) {
424 return ptr->stop();
425 } else {
426 return EINVAL;
427 }
428}
429
430template <typename T>
431inline int execution_queue_join(ExecutionQueueId<T> id) {

Callers 15

test_single_threadFunction · 0.85
test_rvalueFunction · 0.85
test_performanceFunction · 0.85
test_execute_urgentFunction · 0.85
test_in_place_taskFunction · 0.85
test_inplace_and_orderFunction · 0.85
test_cancelFunction · 0.85
test_cancel_selfFunction · 0.85
test_random_cancelFunction · 0.85

Calls 1

stopMethod · 0.45

Tested by 14

test_single_threadFunction · 0.68
test_rvalueFunction · 0.68
test_performanceFunction · 0.68
test_execute_urgentFunction · 0.68
test_in_place_taskFunction · 0.68
test_inplace_and_orderFunction · 0.68
test_cancelFunction · 0.68
test_cancel_selfFunction · 0.68
test_random_cancelFunction · 0.68