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

Function bthread_interrupt

src/bthread/bthread.cpp:371–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371int bthread_interrupt(bthread_t tid, bthread_tag_t tag) {
372 return bthread::TaskGroup::interrupt(tid, bthread::get_task_control(), tag);
373}
374
375int bthread_stop(bthread_t tid) {
376 bthread::TaskGroup::set_stopped(tid);

Callers 1

bthread_stopFunction · 0.85

Calls 1

get_task_controlFunction · 0.70

Tested by

no test coverage detected