Lines Matching refs:idx
105 int idx = 0; in ThreadFuncCpp() local
111 while (idx < times) { in ThreadFuncCpp()
113 if (idx % timeBase == 0) { in ThreadFuncCpp()
114 printf("thread %ld malloc %d times\n", tid, idx); in ThreadFuncCpp()
119 idx++; in ThreadFuncCpp()
130 int idx = 0; in ThreadFuncCppHook() local
140 while (idx < times) { in ThreadFuncCppHook()
141 if (idx == static_cast<int>(dlopenTrigger)) { in ThreadFuncCppHook()
156 if (idx % timeBase == 0) { in ThreadFuncCppHook()
157 printf("thread %ld malloc %d times\n", tid, idx); in ThreadFuncCppHook()
162 idx++; in ThreadFuncCppHook()
182 int idx; in ThreadTimeCost() local
183 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
184 …if (pthread_create(thrArray + idx, nullptr, ThreadFuncCpp, static_cast<void*>(&mallocTimes)) != 0)… in ThreadTimeCost()
188 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
189 pthread_join(thrArray[idx], nullptr); in ThreadTimeCost()
202 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
203 …if (pthread_create(thrArrayHook + idx, nullptr, ThreadFuncCppHook, static_cast<void*>(&mallocTimes… in ThreadTimeCost()
208 for (idx = 0; idx < threadNum; ++idx) { in ThreadTimeCost()
209 pthread_join(thrArrayHook[idx], nullptr); in ThreadTimeCost()