Lines Matching refs:threadNum
170 int ThreadTimeCost(int threadNum, int mallocTimes) in ThreadTimeCost() argument
173 if (threadNum <= 0) { in ThreadTimeCost()
177 pthread_t* thrArray = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost()
183 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
188 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
197 pthread_t* thrArrayHook = new (std::nothrow) pthread_t[threadNum]; in ThreadTimeCost()
202 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
208 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
220 int threadNum = 1; in main() local
224 threadNum = atoi(argv[1]); in main()
234 printf("Test start %d thread, malloc %d times\n", threadNum, mallocTimes); in main()
235 if (!ThreadTimeCost(threadNum, mallocTimes)) { in main()