Lines Matching defs:index
244 PRIntn index;
254 for (index = 0; index < sizeof(buffer); ++index)
255 buffer[index] = (char)index;
928 PRUintn index;
1111 for (index = 0; index < clients; ++index)
1113 client[index].state = cs_init;
1114 client[index].ml = PR_NewLock();
1120 &client[index].serverAddress);
1123 DEFAULT_PORT, &client[index].serverAddress);
1128 0, &host, DEFAULT_PORT, &client[index].serverAddress);
1130 client[index].stateChange = PR_NewCondVar(client[index].ml);
1134 client[index].thread = PR_CreateThread(
1135 PR_USER_THREAD, Client, &client[index], PR_PRIORITY_NORMAL,
1137 TEST_ASSERT(NULL != client[index].thread);
1138 PR_Lock(client[index].ml);
1139 while (cs_init == client[index].state)
1140 PR_WaitCondVar(client[index].stateChange, PR_INTERVAL_NO_TIMEOUT);
1141 PR_Unlock(client[index].ml);
1157 for (index = 0; index < clients; ++index)
1161 PR_CurrentThread(), client[index].thread));
1163 PR_Lock(client[index].ml);
1164 if (cs_run == client[index].state)
1166 client[index].state = cs_stop;
1167 PR_Interrupt(client[index].thread);
1168 while (cs_stop == client[index].state)
1170 client[index].stateChange, PR_INTERVAL_NO_TIMEOUT);
1172 PR_Unlock(client[index].ml);
1176 PR_CurrentThread(), client[index].thread));
1178 joinStatus = PR_JoinThread(client[index].thread);
1180 PR_DestroyCondVar(client[index].stateChange);
1181 PR_DestroyLock(client[index].ml);