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

Function interrupt_pthread

src/bthread/interrupt_pthread.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37int interrupt_pthread(pthread_t th) {
38 pthread_once(&register_sigurg_once, register_sigurg);
39 return pthread_kill(th, SIGURG);
40}
41
42} // namespace bthread

Callers 3

TESTFunction · 0.85
trigger_signalFunction · 0.85
stop_and_joinMethod · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
trigger_signalFunction · 0.68