Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 - 12 of 12) sorted by relevance

/foundation/resourceschedule/ffrt/src/eu/
H A Dco2_context.c195 int co2_init_context(struct co2_context* ctx, void (*func)(void*), void* arg, void* stack, size_t stack_size) in co2_init_context() argument
197 if (stack_size < 0x4 * sizeof(uintptr_t)) { in co2_init_context()
201 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.h67 int co2_init_context(struct co2_context* ctx, void (*func)(void*), void* arg, void* stack, size_t stack_size);
H A Dco_routine.cpp357 GetCoEnv()->runningCo = AllocNewCoRoutine(task->stack_size);
359 if (GetCoEnv()->runningCo->allocatedSize != task->stack_size) { // stack size not match, alloc one
361 GetCoEnv()->runningCo = AllocNewCoRoutine(task->stack_size);
/foundation/resourceschedule/ffrt/src/tm/
H A Dtask_base.h66 uint64_t stack_size = STACK_SIZE; member in ffrt::CoTask
H A Dcpu_task.cpp103 stack_size = std::max(attr->stackSize_, MIN_STACK_SIZE); in CPUEUTask()
H A Dqueue_task.cpp43 stack_size = std::max(attr->stackSize_, MIN_STACK_SIZE); in QueueTask()
/foundation/resourceschedule/ffrt/interfaces/kits/cpp/
H A Dtask.h162 inline task_attr& stack_size(uint64_t size) in stack_size() function in ffrt::task_attr
175 inline uint64_t stack_size() const in stack_size() function in ffrt::task_attr
700 * @param stack_size Indicates the thread stack size.
702 returns ffrt_error_inval if qos_ or stack_size invalid;
707 static inline ffrt_error_t set_worker_stack_size(qos qos_, size_t stack_size) in set_worker_stack_size() argument
709 return ffrt_set_worker_stack_size(qos_, stack_size); in set_worker_stack_size()
/foundation/resourceschedule/ffrt/interfaces/kits/c/
H A Dtask.h281 * @param stack_size Indicates worker thread stack size.
285 FFRT_C_API ffrt_error_t ffrt_set_worker_stack_size(ffrt_qos_t qos, size_t stack_size);
/foundation/resourceschedule/ffrt/src/core/
H A Dtask.cpp428 ffrt_error_t ffrt_set_worker_stack_size(ffrt_qos_t qos, size_t stack_size) in ffrt_set_worker_stack_size() argument
430 if (qos < ffrt::QoS::Min() || qos >= ffrt::QoS::Max() || stack_size < PTHREAD_STACK_MIN) { in ffrt_set_worker_stack_size()
431 FFRT_LOGE("qos [%d] or stack size [%d] is invalid.", qos, stack_size); in ffrt_set_worker_stack_size()
448 groupCtl[qos].workerStackSize = (stack_size - 1 + static_cast<size_t>(pageSize)) & in ffrt_set_worker_stack_size()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_common.c370 attr.stack_size = DFINDER_THREAD_STACK_SIZE; in NstackxInitInner()

Completed in 8 milliseconds