| 937 | } |
| 938 | |
| 939 | void 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 | |
| 948 | struct SleepArgs { |
| 949 | uint64_t timeout_us; |
nothing calls this directly
no test coverage detected