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

Function bthread_exit

src/bthread/bthread.cpp:399–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void bthread_exit(void* retval) {
400 bthread::TaskGroup* g = bthread::tls_task_group;
401 if (g != NULL && !g->is_current_main_task()) {
402 throw bthread::ExitException(retval);
403 } else {
404 pthread_exit(retval);
405 }
406}
407
408int bthread_join(bthread_t tid, void** thread_return) {
409 return bthread::TaskGroup::join(tid, thread_return);

Callers 1

just_exitFunction · 0.85

Calls 2

ExitExceptionClass · 0.85
is_current_main_taskMethod · 0.80

Tested by 1

just_exitFunction · 0.68