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