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

Method priority_to_run

src/bthread/task_group.cpp:939–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937}
938
939void TaskGroup::priority_to_run(void* args_in) {
940 ReadyToRunArgs* args = static_cast<ReadyToRunArgs*>(args_in);
941#ifdef BRPC_BTHREAD_TRACER
942 tls_task_group->_control->_task_tracer.set_status(
943 TASK_STATUS_READY, args->meta);
944#endif // BRPC_BTHREAD_TRACER
945 return tls_task_group->control()->push_priority_queue(args->tag, args->meta->tid);
946}
947
948struct SleepArgs {
949 uint64_t timeout_us;

Callers

nothing calls this directly

Calls 3

set_statusMethod · 0.80
push_priority_queueMethod · 0.80
controlMethod · 0.80

Tested by

no test coverage detected