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

Function bthread_flush

src/bthread/bthread.cpp:358–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358void bthread_flush() {
359 bthread::TaskGroup* g = bthread::tls_task_group;
360 if (g) {
361 return g->flush_nosignal_tasks();
362 }
363 g = bthread::tls_task_group_nosignal;
364 if (g) {
365 // NOSIGNAL tasks were created in this non-worker.
366 bthread::tls_task_group_nosignal = NULL;
367 return g->flush_nosignal_tasks_remote();
368 }
369}
370
371int bthread_interrupt(bthread_t tid, bthread_tag_t tag) {
372 return bthread::TaskGroup::interrupt(tid, bthread::get_task_control(), tag);

Callers 3

check_sleepFunction · 0.85
TESTFunction · 0.85
ProcessNewMessageMethod · 0.85

Calls 2

flush_nosignal_tasksMethod · 0.80

Tested by 2

check_sleepFunction · 0.68
TESTFunction · 0.68