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