Home
last modified time | relevance | path

Searched refs:tasks (Results 1 - 25 of 26) sorted by relevance

12

/base/request/request/services/src/manage/scheduler/qos/
H A Dapps.rs85 tasks: Vec<Task>,
92 tasks: Vec::new(), in new()
96 fn from_raw(uid: u64, tasks: Vec<Task>) -> Self { in from_raw()
97 Self { uid, tasks } in from_raw()
101 self.tasks.is_empty()
105 self.tasks.binary_insert(task) in insert()
110 .tasks in remove()
115 self.tasks.remove(i); in remove()
127 &self.tasks in deref()
191 let mut tasks in reload_all_app_from_database() variables
[all...]
H A Dmod.rs41 // Only tasks that can run automatically can be added to the qos queue.
103 // Here if the number of all uncompleted tasks is less than `m1 + m2`, in reschedule_inner()
117 for tasks in self.apps.iter().skip(app_i + 1).map(|app| &app[..]) { in reschedule_inner()
118 let task = match tasks.get(i) { in reschedule_inner()
145 // supplement fair position with remaining tasks in reschedule_inner()
/base/hiviewdfx/hiview/plugins/performance/executor/
H A DThrTaskContainer.cpp43 tasks.push_back(task); in PostTask()
50 if (tasks.size() < maxTaskSize) { in IsTaskOverLimit()
54 for (auto& task: tasks) { in IsTaskOverLimit()
58 tasks.clear(); in IsTaskOverLimit()
67 while (tasks.empty()) { in Entry()
71 ITask* task = tasks.front(); in Entry()
77 tasks.erase(tasks.begin()); in Entry()
H A DThrTaskContainer.h36 std::vector<ITask*> tasks; member in OHOS::HiviewDFX::ThrTaskContainer
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
H A Dhc_task_thread.c32 HcBool ret = thread->tasks.popFront(&thread->tasks, &task); in PopTask()
49 thread->tasks.pushBack(&thread->tasks, &taskWarp); in PushTask()
59 FOR_EACH_HC_VECTOR(thread->tasks, index, taskWarp) { in Clear()
65 thread->tasks.clear(&thread->tasks); in Clear()
140 thread->tasks = CREATE_HC_VECTOR(TaskVec); in InitHcTaskThread()
146 DESTROY_HC_VECTOR(TaskVec, &thread->tasks); in DestroyHcTaskThread()
/base/update/updateservice/services/startup/manage/src/
H A Dstartup_schedule.cpp74 bool StartupSchedule::OnDemandSchedule(const std::vector<ScheduleTask> &tasks) in OnDemandSchedule() argument
76 if (tasks.empty()) { in OnDemandSchedule()
80 for (const auto &task : tasks) { in OnDemandSchedule()
83 auto isSuccess = SystemAbilityOperator().UpdateStartupPolicy(tasks); in OnDemandSchedule()
H A Dstartup_schedule_empty.cpp55 bool StartupSchedule::OnDemandSchedule(const std::vector<ScheduleTask> &tasks) in OnDemandSchedule() argument
/base/msdp/device_status/intention/scheduler/task_scheduler/src/
H A Dtask_scheduler.cpp35 FI_HILOGE("Expired tasks will be discarded, id:%{public}d", id_); in ProcessTask()
75 std::vector<TaskPtr> tasks; in ProcessTasks() local
76 PopPendingTaskList(tasks); in ProcessTasks()
77 for (const auto &it : tasks) { in ProcessTasks()
116 void TaskScheduler::PopPendingTaskList(std::vector<TaskPtr> &tasks) in PopPendingTaskList() argument
127 tasks.push_back(firstTask->GetSharedPtr()); in PopPendingTaskList()
/base/msdp/device_status/services/delegate_task/src/
H A Ddelegate_tasks.cpp74 std::vector<TaskPtr> tasks; in ProcessTasks() local
75 PopPendingTaskList(tasks); in ProcessTasks()
76 for (const auto &it : tasks) { in ProcessTasks()
115 void DelegateTasks::PopPendingTaskList(std::vector<TaskPtr> &tasks) in PopPendingTaskList() argument
126 tasks.push_back(taskDuty->GetSharedPtr()); in PopPendingTaskList()
/base/update/updateservice/services/startup/manage/include/
H A Dstartup_schedule.h33 virtual bool OnDemandSchedule(const std::vector<ScheduleTask> &tasks) = 0;
43 bool OnDemandSchedule(const std::vector<ScheduleTask> &tasks) final;
/base/update/updateservice/services/startup/access/src/
H A Daccess_manager.cpp57 std::vector<ScheduleTask> tasks = access->GetScheduleTasks(); in GetScheduleTasks() local
58 scheduleTasks.insert(scheduleTasks.end(), tasks.begin(), tasks.end()); in GetScheduleTasks()
/base/request/request/services/src/manage/events/
H A Ddump.rs20 .tasks()
37 .tasks()
/base/powermgr/power_manager/utils/ffrt/src/
H A Dffrt_utils.cpp32 void FFRTUtils::SubmitQueueTasks(const std::vector<FFRTTask>& tasks, FFRTQueue& queue) in SubmitQueueTasks() argument
34 if (tasks.empty()) { in SubmitQueueTasks()
37 for (auto task : tasks) { in SubmitQueueTasks()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/include/
H A Djs_callback_manager.h40 void Clear(TaskQueue& tasks);
/base/security/device_auth/deps_adapter/os_adapter/interfaces/
H A Dhc_task_thread.h35 TaskVec tasks; member
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
H A Djs_callback_manager.cpp151 void JsCallbackManager::Clear(TaskQueue& tasks) in Clear() argument
154 swap(empty, tasks); in Clear()
/base/powermgr/power_manager/utils/ffrt/include/
H A Dffrt_utils.h43 * The mutex for FFRT tasks.
68 static void SubmitQueueTasks(const std::vector<FFRTTask>& tasks, FFRTQueue& queue);
/base/msdp/device_status/intention/scheduler/task_scheduler/include/
H A Dtask_scheduler.h96 void PopPendingTaskList(std::vector<TaskPtr> &tasks);
/base/msdp/device_status/services/delegate_task/include/
H A Ddelegate_tasks.h98 void PopPendingTaskList(std::vector<TaskPtr> &tasks);
/base/request/request/frameworks/cj/ffi/include/
H A Dcj_request_ffi.h186 RequestCArrString tasks; member
/base/request/request/services/src/manage/scheduler/
H A Dmod.rs105 pub(crate) fn tasks(&self) -> impl Iterator<Item = &Arc<RequestTask>> {
106 self.running_queue.tasks()
114 info!("reschedule restore all tasks");
115 // Reschedule tasks based on the current `QOS` status.
435 .tasks()
/base/request/request/test/unittest/cpp_test/fwkTest/src/
H A Drequest_manager_impl_test.cpp710 std::map<std::string, std::shared_ptr<Request>> tasks = RequestManagerImpl::GetInstance()->tasks_; in HWTEST_F() local
711 tasks.erase(taskId); in HWTEST_F()
716 tasks.erase(taskId); in HWTEST_F()
/base/inputmethod/imf/services/src/
H A Dperuser_session.cpp1365 int32_t tasks = 0;
1372 tasks = ++restartTasks_;
1374 if (tasks == 1 && !RestartIme()) {
1389 int32_t tasks = 0;
1392 tasks = --restartTasks_;
1394 if (tasks > 0 && !RestartIme()) {
/base/request/request/services/src/manage/scheduler/queue/
H A Dmod.rs111 pub(crate) fn tasks(&self) -> impl Iterator<Item = &Arc<RequestTask>> {
144 // We need to decide which tasks need to continue running based on `QosChanges`.
219 // every satisfied tasks in running has been moved, set left tasks to Waiting
/base/request/request/services/src/manage/
H A Dquery.rs100 .tasks()

Completed in 20 milliseconds

12