Home
last modified time | relevance | path

Searched refs:threadNum (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/process_dump/
H A Dmultithread_constructor.c46 NOINLINE int MultiThreadConstructor(const int threadNum) in MultiThreadConstructor() argument
48 pthread_t t[threadNum]; in MultiThreadConstructor()
49 int threadID[threadNum]; in MultiThreadConstructor()
51 for (int i = 0; i < threadNum; ++i) { in MultiThreadConstructor()
64 NOINLINE int MultiThreadConstructorForThreadCrash(const int threadNum) in MultiThreadConstructorForThreadCrash() argument
66 pthread_t t[threadNum]; in MultiThreadConstructorForThreadCrash()
67 int threadID[threadNum]; in MultiThreadConstructorForThreadCrash()
69 int threadIDCrash = threadNum; in MultiThreadConstructorForThreadCrash()
71 for (int i = 0; i < threadNum; ++i) { in MultiThreadConstructorForThreadCrash()
H A Ddfx_processdump_test.cpp70 static pid_t CreateMultiThreadProcess(int threadNum) in CreateMultiThreadProcess() argument
76 (void)MultiThreadConstructor(threadNum); in CreateMultiThreadProcess()
81 static pid_t CreateMultiThreadForThreadCrash(int threadNum) in CreateMultiThreadForThreadCrash() argument
87 (void)MultiThreadConstructorForThreadCrash(threadNum); in CreateMultiThreadForThreadCrash()
92 static pid_t CreateMultiThreadForThreadCrashWithOpen(int threadNum, int openNum) in CreateMultiThreadForThreadCrashWithOpen() argument
101 (void)MultiThreadConstructorForThreadCrash(threadNum); in CreateMultiThreadForThreadCrashWithOpen()
H A Dmultithread_constructor.h30 int MultiThreadConstructor(const int threadNum);
31 int MultiThreadConstructorForThreadCrash(const int threadNum);
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dstring_utils_test.cpp82 void TestThread(int* num, int threadNum, Lock* lock) in TestThread() argument
85 for (int i = 0; i < threadNum; ++i) { in TestThread()
101 int threadNum = 3; variable
102 int result = num + threadNum;
104 TestThread(&num, threadNum, &lock);
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/
H A Dws_ffrt_helper_test.cpp91 constexpr int threadNum = 100; variable
93 SET_THREAD_NUM(threadNum);
107 ASSERT_EQ(result, TASK_NUM * threadNum);
147 constexpr int threadNum = 10; variable
149 SET_THREAD_NUM(threadNum);
160 ASSERT_EQ(result, totalTaskNum - threadNum * TASK_NUM);
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
H A Dget_hardware_info.cpp162 size_t threadNum = in GetHardwareUsage() local
164 if (threadNum == 0) { in GetHardwareUsage()
165 threadNum = 1; in GetHardwareUsage()
167 size_t groupSize = (size - 1) / threadNum + 1; in GetHardwareUsage()
169 for (size_t i = 0; i < threadNum; i++) { in GetHardwareUsage()
H A Dmemory_util.cpp112 size_t MemoryUtil::GetMaxThreadNum(const size_t &threadNum) in GetMaxThreadNum() argument
117 maxThreadNum = threadNum; in GetMaxThreadNum()
118 } else if (hardwareThreads < threadNum) { in GetMaxThreadNum()
121 maxThreadNum = threadNum; in GetMaxThreadNum()
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dstring_utils_test.cpp81 void TestThread(int* num, int threadNum, Lock* lock) in TestThread() argument
84 for (int i = 0; i < threadNum; ++i) { in TestThread()
100 int threadNum = 3; variable
101 int result = num + threadNum;
103 TestThread(&num, threadNum, &lock);
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_generate_worker.cpp50 int32_t threadNum; in Init() local
55 threadNum = THREAD_NUM_FOREGROUND; in Init()
59 threadNum = THREAD_NUM_BACKGROUND; in Init()
68 for (auto i = 0; i < threadNum; i++) { in Init()
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/
H A Drefbase_fuzzer.cpp351 uint8_t threadNum = 1; in RefbaseTestFunc() local
353 threadNum = dataProvider->ConsumeIntegralInRange<uint8_t>(1, MAX_THREADS); in RefbaseTestFunc()
355 for (uint8_t i = 0; i < threadNum; i++) { in RefbaseTestFunc()
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/
H A Dmemory_util.h46 size_t GetMaxThreadNum(const size_t &threadNum);
/ohos5.0/base/hiviewdfx/hiview/base/event_publish/include/
H A Dapp_event_handler.h134 uint32_t threadNum = 0; member
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/
H A Dprocess_skeleton.cpp451 [&threadNum = this->runningChildThreadNum_] { return threadNum.load() == 0; }); in NotifyChildThreadStop()
/ohos5.0/commonlibrary/c_utils/docs/en/
H A Dc_utils_thread_pool.md27 | uint32_t | **Start**(int threadsNum)<br>Start a given number(threadNum) of threads, which will ex…
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/
H A Dvideoenc_stable_unit_test.cpp957 uint64_t threadNum = 0; in main() local
962 threadNum = GetNum(argv[i], "--thread_num"); in main()
970 } else if (threadNum > 0) { in main()
971 VideoEncSample::threadNum_ = threadNum; in main()
H A Dvideodec_stable_unit_test.cpp1110 uint64_t threadNum = 0; in main() local
1115 threadNum = GetNum(argv[i], "--thread_num"); in main()
1129 } else if (threadNum > 0) { in main()
1130 VideoDecSample::threadNum_ = threadNum; in main()
H A Dvideodec_hevcdec_unit_test.cpp2024 uint64_t threadNum = 0; in main() local
2030 threadNum = GetNum(argv[i], "--thread_num"); in main()
2038 } else if (threadNum > 0) { in main()
2039 VideoDecSample::threadNum_ = threadNum; in main()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/communicator/
H A Ddistributeddb_communicator_deep_test.cpp1054 int threadNum = 3; variable
1055 threads.reserve(threadNum);
1056 for (int n = 0; n < threadNum; n++) {
/ohos5.0/base/hiviewdfx/hiview/base/event_publish/
H A Dapp_event_handler.cpp183 AddValueToJsonString("num", event.threadNum, jsonStr, true); in PostEvent()
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-ai.md19 |新增|NA|类名:CpuDevice;<br>方法or属性:threadNum?: number;|@ohos.ai.mindSporeLite.d.ts|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-ai.md19 |Added|NA|Class name: CpuDevice;<br>Method or attribute name: threadNum?: number;|@ohos.ai.mindSpor…
/ohos5.0/docs/zh-cn/application-dev/ai/mindspore/
H A Dmindspore-guidelines-based-js.md185 context.cpu.threadNum = 2;
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dtask_manager.cpp129 int64_t threadNum = static_cast<int64_t>(workers_.size()); in CountTraceForWorker() local
133 HITRACE_HELPER_COUNT_TRACE("threadNum", threadNum); in CountTraceForWorker()
134 HITRACE_HELPER_COUNT_TRACE("runningThreadNum", threadNum - idleWorkers); in CountTraceForWorker()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-mindspore-lite-kit/
H A Djs-apis-mindSporeLite.md460 | threadNum | number | 否 | 是 | 设置运行时的线程数,默认值:2。…
473 context.cpu.threadNum = 2;
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-ai.md94 |新增|NA|类名:CpuDevice;<br>方法or属性:threadNum?: number;|@ohos.ai.mindSporeLite.d.ts|

12