Lines Matching defs:index
246 PRIntn index;
256 for (index = 0; index < sizeof(buffer); ++index)
257 buffer[index] = (char)index;
1134 PRUintn index;
1324 for (index = 0; index < clients; ++index)
1326 client[index].state = cs_init;
1327 client[index].ml = PR_NewLock();
1332 &client[index].serverAddress);
1337 0, &host, DEFAULT_PORT, &client[index].serverAddress);
1339 client[index].stateChange = PR_NewCondVar(client[index].ml);
1344 Client, &client[index], PR_PRIORITY_NORMAL, PR_JOINABLE_THREAD);
1346 PR_Lock(client[index].ml);
1347 while (cs_init == client[index].state)
1348 PR_WaitCondVar(client[index].stateChange, PR_INTERVAL_NO_TIMEOUT);
1349 PR_Unlock(client[index].ml);
1365 for (index = 0; index < clients; ++index)
1369 PR_CurrentThread(), client[index].thread));
1371 PR_Lock(client[index].ml);
1372 if (cs_run == client[index].state)
1374 client[index].state = cs_stop;
1375 PR_Interrupt(client[index].thread);
1376 while (cs_stop == client[index].state)
1378 client[index].stateChange, PR_INTERVAL_NO_TIMEOUT);
1380 PR_Unlock(client[index].ml);
1384 PR_CurrentThread(), client[index].thread));
1386 joinStatus = JoinThread(client[index].thread);
1388 PR_DestroyCondVar(client[index].stateChange);
1389 PR_DestroyLock(client[index].ml);