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

Function bthread_stop

src/bthread/bthread.cpp:375–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375int bthread_stop(bthread_t tid) {
376 bthread::TaskGroup::set_stopped(tid);
377 return bthread_interrupt(tid);
378}
379
380int bthread_stopped(bthread_t tid) {
381 return (int)bthread::TaskGroup::is_stopped(tid);

Callers 13

TestConnectInterruptFunction · 0.85
TESTFunction · 0.85
OnPlayMethod · 0.85
OnStopMethod · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
~SocketMapMethod · 0.85
JoinMethod · 0.85
JoinMethod · 0.85
~DiscoveryClientMethod · 0.85
~NamingServiceThreadMethod · 0.85

Calls 1

bthread_interruptFunction · 0.85

Tested by 7

TestConnectInterruptFunction · 0.68
TESTFunction · 0.68
OnPlayMethod · 0.68
OnStopMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68