Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
375
int bthread_stop(bthread_t tid) {
376
bthread::TaskGroup::set_stopped(tid);
377
return bthread_interrupt(tid);
378
}
379
380
int bthread_stopped(bthread_t tid) {
381
return (int)bthread::TaskGroup::is_stopped(tid);
Callers
13
TestConnectInterrupt
Function · 0.85
TEST
Function · 0.85
OnPlay
Method · 0.85
OnStop
Method · 0.85
TEST_F
Function · 0.85
TEST
Function · 0.85
TEST
Function · 0.85
~SocketMap
Method · 0.85
Join
Method · 0.85
Join
Method · 0.85
~DiscoveryClient
Method · 0.85
~NamingServiceThread
Method · 0.85
Calls
1
bthread_interrupt
Function · 0.85
Tested by
7
TestConnectInterrupt
Function · 0.68
TEST
Function · 0.68
OnPlay
Method · 0.68
OnStop
Method · 0.68
TEST_F
Function · 0.68
TEST
Function · 0.68
TEST
Function · 0.68