Home
last modified time | relevance | path

Searched refs:thrArray (Results 1 – 4 of 4) sorted by relevance

/developtools/profiler/device/plugins/native_hook/test/
Dperf_test_data.cpp173 pthread_t* thrArray = (pthread_t*)malloc(sizeof(pthread_t) * threadNum); in main() local
174 if (thrArray == nullptr) { in main()
201 … if (pthread_create(thrArray + idx, nullptr, UserThread, reinterpret_cast<void*>(&idx)) != 0) { in main()
207 pthread_join(thrArray[idx], nullptr); in main()
212 if (thrArray != nullptr) { in main()
213 free(thrArray); in main()
Dhook_test.cpp177 pthread_t* thrArray = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost() local
178 if (!thrArray) { in ThreadTimeCost()
184 …if (pthread_create(thrArray + idx, nullptr, ThreadFuncCpp, static_cast<void*>(&mallocTimes)) != 0)… in ThreadTimeCost()
189 pthread_join(thrArray[idx], nullptr); in ThreadTimeCost()
191 delete []thrArray; in ThreadTimeCost()
Dstatistics_test.cpp310 pthread_t* thrArray = new (std::nothrow) pthread_t[threadNum]; in main() local
311 if (!thrArray) { in main()
317 … if (pthread_create(thrArray + idx, nullptr, HhreadFuncCpp, static_cast<void*>(&forNum)) != 0) { in main()
322 pthread_join(thrArray[idx], nullptr); in main()
324 delete []thrArray; in main()
/developtools/profiler/hiebpf/test/
Dhiebpf_test_demo.cpp147 pthread_t* thrArray = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost() local
148 if (!thrArray) { in ThreadTimeCost()
156 … if (pthread_create(thrArray + idx, nullptr, ThreadFuncCpp, static_cast<void*>(args[idx])) != 0) { in ThreadTimeCost()
162 pthread_join(thrArray[idx], nullptr); in ThreadTimeCost()
164 delete []thrArray; in ThreadTimeCost()