Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 25 of 28) sorted by relevance

12

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dasync_pool.rs120 let stack_size = 10; in sdv_async_pool_001() localVariable
124 .worker_stack_size(stack_size) in sdv_async_pool_001()
180 let stack_size = 20; in sdv_async_pool_002() localVariable
184 .worker_stack_size(stack_size) in sdv_async_pool_002()
240 let stack_size = 10; in sdv_async_pool_003() localVariable
244 .worker_stack_size(stack_size) in sdv_async_pool_003()
300 let stack_size = 20; in sdv_async_pool_004() localVariable
360 let stack_size = 10; in sdv_async_pool_005() localVariable
420 let stack_size = 20; in sdv_async_pool_006() localVariable
480 let stack_size = 10; in sdv_async_pool_007() localVariable
[all …]
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/builder/
H A Dcommon_builder.rs55 pub(crate) stack_size: Option<usize>,
83 stack_size: None, in new()
169 pub fn worker_stack_size(mut self, stack_size: usize) -> Self {
170 if stack_size < 1 {
171 self.common.stack_size = Some(1);
173 self.common.stack_size = Some(stack_size);
H A Dmulti_thread_builder.rs75 for (qos, stack_size) in self.common.stack_size_by_qos.iter() { in build_global()
76 ffrt_set_worker_stack_size(*qos, *stack_size as c_ulong); in build_global()
205 pub fn stack_size_by_qos(mut self, qos: Qos, stack_size: usize) -> Self { in stack_size_by_qos()
208 let stack_size = match stack_size { in stack_size_by_qos() localVariable
212 self.common.stack_size_by_qos.insert(qos, stack_size); in stack_size_by_qos()
218 pub fn worker_stack_size(self, stack_size: usize) -> Self { in worker_stack_size()
219 self.stack_size_by_qos(Qos::Default, stack_size) in worker_stack_size()
H A Dmod.rs173 assert_eq!(thread_pool_builder.common.stack_size, None); in ut_thread_pool_builder_new()
224 assert_eq!(thread_pool_builder.common.stack_size.unwrap(), 1); in ut_thread_pool_builder_stack_size()
227 assert_eq!(thread_pool_builder.common.stack_size.unwrap(), 1); in ut_thread_pool_builder_stack_size()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Dblocking_pool.rs66 stack_size: builder.stack_size, in new()
121 stack_size: Option<usize>, field
176 if let Some(stack_size) = self.inner.stack_size { in create_permanent_threads()
177 builder = builder.stack_size(stack_size); in create_permanent_threads()
235 if let Some(stack_size) = self.inner.stack_size { in spawn()
236 builder = builder.stack_size(stack_size); in spawn()
427 blocking_pool.inner.stack_size, in ut_blocking_pool_new()
428 thread_pool_builder.common.stack_size in ut_blocking_pool_new()
H A Dasync_pool.rs382 stack_size: Option<usize>, field
425 stack_size: builder.common.stack_size, in new()
463 if let Some(stack_size) = self.inner.stack_size { in create_async_thread_pool()
464 builder = builder.stack_size(stack_size); in create_async_thread_pool()
971 async_pool_spawner.inner.stack_size, in ut_async_pool_spawner_new()
972 thread_pool_builder.common.stack_size in ut_async_pool_spawner_new()
/ohos5.0/docs/zh-cn/device-dev/reference/kernel/cmsis/
H A Dos_thread_attr__t.md23 | [stack_size](#stack_size) | 线程栈大小,单位:字节。 |
121 ### stack_size subsection
125 uint32_t osThreadAttr_t::stack_size
H A D_c_m_s_i_s-_r_t_o_s.md2316 …不支持。<br/>-&nbsp;attr-&gt;stack_mem和attr-&gt;stack_size同时设置有效数据才能使用用户指定内存作为任务栈。<br/>-&nbsp;attr-&gt…
/ohos5.0/foundation/resourceschedule/ffrt/src/eu/
H A Dco2_context.c122 …it_context(struct co2_context* ctx, void (*func)(void*), void* arg, void* stack, size_t stack_size) in co2_init_context() argument
124 if (stack_size < 0x4 * sizeof(uintptr_t)) { in co2_init_context()
128 uintptr_t stack_top = (uintptr_t)stack + stack_size - 0x2 * sizeof(uintptr_t); in co2_init_context()
H A Dco_routine_factory.cpp20 CoRoutine *CoRoutineAllocMem(std::size_t stack_size) in CoRoutineAllocMem() argument
22 return ffrt::QSimpleAllocator<CoRoutine>::AllocMem(stack_size); in CoRoutineAllocMem()
H A Dco_routine_factory.h23 CoRoutine *CoRoutineAllocMem(std::size_t stack_size);
H A Dco2_context.h57 …t_context(struct co2_context* ctx, void (*func)(void*), void* arg, void* stack, size_t stack_size);
H A Dco_routine.cpp348 GetCoEnv()->runningCo = AllocNewCoRoutine(task->stack_size); in CoAlloc()
350 … if (GetCoEnv()->runningCo->allocatedSize != task->stack_size) { // stack size not match, alloc one in CoAlloc()
352 GetCoEnv()->runningCo = AllocNewCoRoutine(task->stack_size); in CoAlloc()
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/kits/cpp/
H A Dtask.h162 inline task_attr& stack_size(uint64_t size) in stack_size() function
175 inline uint64_t stack_size() const in stack_size() function
744 static inline ffrt_error_t set_worker_stack_size(qos qos_, size_t stack_size) in set_worker_stack_size() argument
746 return ffrt_set_worker_stack_size(qos_, stack_size); in set_worker_stack_size()
/ohos5.0/foundation/resourceschedule/ffrt/src/core/
H A Dtask.cpp443 ffrt_error_t ffrt_set_worker_stack_size(ffrt_qos_t qos, size_t stack_size)
445 if (qos < ffrt::QoS::Min() || qos >= ffrt::QoS::Max() || stack_size < PTHREAD_STACK_MIN) {
446 FFRT_LOGE("qos [%d] or stack size [%d] is invalid.", qos, stack_size);
463 groupCtl[qos].workerStackSize = (stack_size - 1 + static_cast<size_t>(pageSize)) &
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
H A Dhks_curve25519_test.c103 attr.stack_size = TEST_TASK_STACK_SIZE; in LITE_TEST_CASE()
/ohos5.0/foundation/resourceschedule/ffrt/src/tm/
H A Dtask_base.h67 uint64_t stack_size = STACK_SIZE; variable
H A Dcpu_task.cpp104 stack_size = std::max(attr->stackSize_, MIN_STACK_SIZE); in CPUEUTask()
H A Dqueue_task.cpp46 stack_size = std::max(attr->stackSize_, MIN_STACK_SIZE); in QueueTask()
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/kits/c/
H A Dtask.h303 FFRT_C_API ffrt_error_t ffrt_set_worker_stack_size(ffrt_qos_t qos, size_t stack_size);
/ohos5.0/docs/zh-cn/device-dev/guide/
H A Ddevice-wlan-led-control.md40 attr.stack_size = LED_TASK_STACK_SIZE;
H A Ddevice-wlan-sdk.md161 uint32_t stack_size; ///< size of stack
193 attr.stack_size = para->size;
/ohos5.0/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/swiper/SwiperA13/
H A Dindex.css98 .stack_size {
/ohos5.0/docs/en/device-dev/guide/
H A Ddevice-wlan-led-control.md40 attr.stack_size = LED_TASK_STACK_SIZE;
H A Ddevice-wlan-sdk.md152 uint32_t stack_size; ///< size of stack
184 attr.stack_size = para->size;

12