Home
last modified time | relevance | path

Searched refs:qos (Results 1 - 7 of 7) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/
H A Dbuilder.rs18 //! - qos
30 pub(crate) qos: Option<Qos>,
44 qos: None, in new()
54 /// Sets the qos of the task
55 pub fn qos(mut self, qos: Qos) -> Self { in qos() functions
56 self.qos = Some(qos); in qos()
105 assert!(builder2.qos.is_none()); in ut_builder_new()
130 assert_eq!(builder.qos(pr in ut_builder_pri()
[all...]
H A Djoin_set.rs387 /// let mut builder = set.build_task().qos(Qos::UserInitiated);
391 pub fn qos(self, qos: Qos) -> Self { in qos() functions
392 let builder = self.builder.qos(qos); in qos()
/commonlibrary/rust/ylong_runtime/ylong_ffrt/src/
H A Dconfig.rs22 pub fn ffrt_set_cpu_worker_max_num(qos: Qos, num: c_uint); in ffrt_set_cpu_worker_max_num()
25 pub fn ffrt_set_worker_stack_size(qos: Qos, num: c_ulong); in ffrt_set_worker_stack_size()
H A Dtask.rs77 /// Sets qos level for the task attribute.
78 pub fn set_qos(&mut self, qos: Qos) -> &mut Self { in set_qos()
81 ffrt_task_attr_set_qos(ptr, qos); in set_qos()
86 /// Gets the qos level from the task attribute.
109 fn ffrt_task_attr_set_qos(attr: *mut FfrtTaskAttr, qos: Qos); in ffrt_task_attr_set_qos()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/builder/
H A Dmulti_thread_builder.rs44 /// Thread number for each qos
72 for (qos, worker_num) in self.thread_num_by_qos.iter() { in build_global()
73 // ffrt_set_cpu_worker_max_num(*qos, *worker_num as c_uint); in build_global()
76 for (qos, stack_size) in self.common.stack_size_by_qos.iter() { in build_global()
77 ffrt_set_worker_stack_size(*qos, *stack_size as c_ulong); in build_global()
88 /// Sets the maximum worker number for a specific qos group.
90 /// If a worker number has already been set for a qos, calling the method
91 /// with the same qos will overwrite the old value.
94 /// The accepted worker number range for each qos is [1, 20]. If 0 is passed
98 pub fn max_worker_num_by_qos(mut self, qos
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/ffrt/
H A Dspawner.rs44 if let Some(qos) = builder.qos {
45 attr.set_qos(qos);
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dworker.cpp181 ffrt_qos_t qos = ffrt_this_task_get_qos(); in InitFfrtInfo() local
182 priority_ = FFRTQOS_WORKERPRIORITY_MAP.at(qos); in InitFfrtInfo()

Completed in 4 milliseconds