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

Function ready_to_run_from_timer_thread

src/bthread/task_group.cpp:955–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953};
954
955static void ready_to_run_from_timer_thread(void* arg) {
956 CHECK(tls_task_group == NULL);
957 const SleepArgs* e = static_cast<const SleepArgs*>(arg);
958 auto g = e->group;
959 auto tag = g->tag();
960 g->control()->choose_one_group(tag)->ready_to_run_remote(e->meta);
961}
962
963void TaskGroup::_add_sleep_event(void* void_args) {
964 // Must copy SleepArgs. After calling TimerThread::schedule(), previous

Callers

nothing calls this directly

Calls 4

tagMethod · 0.80
ready_to_run_remoteMethod · 0.80
choose_one_groupMethod · 0.80
controlMethod · 0.80

Tested by

no test coverage detected