[refactor](executor)Remove empty group logic #26005

This commit is contained in:
wangbo
2023-10-27 14:24:41 +08:00
committed by GitHub
parent e3dbbed47c
commit 46d40b1952
13 changed files with 13 additions and 198 deletions

View File

@ -84,7 +84,7 @@ uint64_t TaskGroupEntity<QueueType>::cpu_share() const {
template <typename QueueType>
uint64_t TaskGroupEntity<QueueType>::task_group_id() const {
return _is_empty_group_entity ? -1 : _tg->id();
return _tg->id();
}
template <typename QueueType>
@ -101,21 +101,6 @@ std::string TaskGroupEntity<QueueType>::debug_string() const {
_tg->id(), _tg->name(), _type, cpu_share(), task_size(), _vruntime_ns);
}
template <typename QueueType>
void TaskGroupEntity<QueueType>::set_empty_group_entity(bool is_empty_group_entity) {
_is_empty_group_entity = is_empty_group_entity;
}
template <typename QueueType>
bool TaskGroupEntity<QueueType>::is_empty_group_entity() {
return _is_empty_group_entity;
}
template <typename QueueType>
void TaskGroupEntity<QueueType>::update_empty_cpu_share(uint64_t empty_cpu_share) {
_cpu_share = empty_cpu_share;
}
template class TaskGroupEntity<std::queue<pipeline::PipelineTask*>>;
template class TaskGroupEntity<ScanTaskQueue>;