Home
last modified time | relevance | path

Searched refs:stackSize (Results 1 – 25 of 75) sorted by relevance

123

/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
H A Dhc_thread.c39 thread->stackSize, StringGet(&thread->name)); in StaticThreadFunc()
69 if (thread->stackSize > 0 && thread->stackSize <= MAX_THREAD_STACK_SIZE) { in Start()
70 pthread_attr_setstacksize(&attr, thread->stackSize); in Start()
113 int32_t InitThread(HcThread *thread, ThreadFunc func, size_t stackSize, const char *threadName) in InitThread() argument
124 thread->stackSize = stackSize; in InitThread()
/ohos5.0/drivers/hdf_core/framework/support/posix/src/
H A Dosal_thread.c162 size_t stackSize = param->stackSize; in OsalThreadStart() local
163 if (stackSize > 0) { in OsalThreadStart()
164 stackSize = (stackSize < OSAL_PTHREAD_STACK_MIN) ? OSAL_PTHREAD_STACK_MIN : stackSize; in OsalThreadStart()
165 resultCode = pthread_attr_setstacksize(&attribute, stackSize); in OsalThreadStart()
/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/
H A Dhc_thread.c62 if (thread->stackSize > 0 && thread->stackSize <= MAX_THREAD_STACK_SIZE) { in Start()
63 pthread_attr_setstacksize(&attr, thread->stackSize); in Start()
112 int32_t InitThread(HcThread *thread, ThreadFunc func, size_t stackSize, const char *threadName) in InitThread() argument
123 thread->stackSize = stackSize; in InitThread()
/ohos5.0/foundation/ai/ai_engine/services/common/platform/threadpool/source/
H A Daie_thread_unix.cpp54 attr.stackSize = THREAD_DEFAULT_STACK_SIZE; in InitThreadAttr()
60 attr.stackSize = size; in SetThreadAttrStackSize()
83 if (attr != nullptr && attr->stackSize > 0) { in CreateOneThread()
84 pthread_attr_setstacksize(&pthreadAttr, attr->stackSize); in CreateOneThread()
H A Dthread.cpp88 size_t stackSize = stackSize_; in StartThread() local
90 stackSize = worker_->GetStackSize(); in StartThread()
95 if ((stackSize >= THREAD_MIN_STACK_SIZE) && (stackSize < THREAD_MAX_STACK_SIZE)) { in StartThread()
97 (void)SetThreadAttrStackSize(attr, stackSize); in StartThread()
/ohos5.0/foundation/resourceschedule/ffrt/src/eu/
H A Dworker_thread.cpp36 size_t stackSize = FFRTFacade::GetEUInstance().GetGroupCtl()[qos()].workerStackSize; in WorkerThread() local
37 if (stackSize > 0) { in WorkerThread()
38 pthread_attr_setstacksize(&attr_, stackSize); in WorkerThread()
H A Dco_routine.cpp267 static inline CoRoutine* AllocNewCoRoutine(size_t stackSize) in AllocNewCoRoutine() argument
271 if (likely(stackSize == defaultStackSize)) { in AllocNewCoRoutine()
272 co = ffrt::CoRoutineAllocMem(stackSize); in AllocNewCoRoutine()
274 co = static_cast<CoRoutine*>(mmap(nullptr, stackSize, in AllocNewCoRoutine()
285 co->allocatedSize = stackSize; in AllocNewCoRoutine()
286 co->stkMem.size = static_cast<uint64_t>(stackSize - sizeof(CoRoutine) + 8); in AllocNewCoRoutine()
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_thread.cpp122 size_t stackSize = 0; variable
139 pthread_attr_getstacksize(&wt->attr_, &stackSize);
140 EXPECT_EQ(stackSize, 131072); // 蓝区stack size
/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/interfaces/liteos/
H A Dhc_thread.h33 size_t stackSize; member
41 int32_t InitThread(HcThread* thread, ThreadFunc func, size_t stackSize, const char* threadName);
/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/interfaces/
H A Dhc_thread.h37 size_t stackSize; member
45 int32_t InitThread(HcThread* thread, ThreadFunc func, size_t stackSize, const char* threadName);
H A Dhc_task_thread.h48 int32_t InitHcTaskThread(HcTaskThread* thread, size_t stackSize, const char* threadName);
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr/source/
H A Dtask_manager.c62 taskPool->stackSize = config->stackSize; in SAMGR_CreateFixedTaskPool()
80 ThreadAttr attr = {name, pool->stackSize, pool->priority, 0, 0}; in SAMGR_StartTaskPool()
84 …OR(HILOG_MODULE_SAMGR, "Start Task<%s, %hu, %hhu> failed!", name, pool->stackSize, pool->priority); in SAMGR_StartTaskPool()
H A Dtask_manager.h40 uint16 stackSize; member
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/innerkits/
H A Dgraphic_thread.h35 uint32_t stackSize; // size of stack member
51 pthread_attr_setstacksize(&threadAttr, attr->stackSize); in ThreadCreate()
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dthread_ex.cpp58 bool CreatePThread(ThreadParam& para, size_t stackSize, pthread_t *threadId) in CreatePThread() argument
76 if (stackSize) { in CreatePThread()
77 pthread_attr_setstacksize(&attr, stackSize); in CreatePThread()
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
H A Dosal_thread.c116 if (param->stackSize != 0) { in OsalThreadStart()
117 stTskInitParam.stackSize = param->stackSize; in OsalThreadStart()
/ohos5.0/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_thread.c136 threadAttr->stackSize = 0; in SoftBusThreadAttrInit()
241 uint64_t stackSize = threadAttr->stackSize; in SoftBusConfTransPthreadAttr() local
242 if (stackSize != 0) { in SoftBusConfTransPthreadAttr()
243 ret = pthread_attr_setstacksize(attr, stackSize); in SoftBusConfTransPthreadAttr()
/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/impl/src/
H A Dhc_task_thread.c121 int32_t InitHcTaskThread(HcTaskThread* thread, size_t stackSize, const char* threadName) in InitHcTaskThread() argument
131 int32_t res = InitThread(&thread->thread, TaskThreadLoop, stackSize, threadName); in InitHcTaskThread()
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_thread.c117 if (param->stackSize != 0) { in OsalThreadStart()
118 stTskInitParam.uwStackSize = param->stackSize; in OsalThreadStart()
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
H A Dosal_thread.c116 if (param->stackSize != 0) { in OsalThreadStart()
117 stTskInitParam.uwStackSize = param->stackSize; in OsalThreadStart()
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr/adapter/
H A Dthread_adapter.h32 uint32 stackSize; // size of stack member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/navigation/
H A Dnavigation_manager.cpp166 auto stackSize = stackInfo->GetArraySize(); in StorageNavigationRecoveryInfo() local
167 for (int32_t j = 0; j < stackSize; ++ j) { in StorageNavigationRecoveryInfo()
/ohos5.0/foundation/ai/ai_engine/services/common/platform/threadpool/include/
H A Daie_thread_unix.h33 size_t stackSize; member
/ohos5.0/drivers/hdf_core/interfaces/inner_api/osal/shared/
H A Dosal_thread.h64 …size_t stackSize; /**< Thread stack size, which may cause thread stack overflow if it is too small… member
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr/adapter/cmsis/
H A Dthread_adapter.c53 …osThreadAttr_t taskAttr = {attr->name, 0, NULL, 0, NULL, attr->stackSize, (osPriority_t)(attr->pri… in THREAD_Create()

123