Lines Matching refs:index
84 int index;
91 for (index = 0; index < num_threads; index++) {
92 if (PR_NewTCPSocketPair(&fds[2 * index]) == PR_FAILURE) {
96 threads[index] = PR_CreateThread(
97 PR_USER_THREAD, ThreadFunc, fds[2 * index],
99 if (NULL == threads[index]) {
111 for (index = 0; index < num_threads; index++) {
112 if (PR_Interrupt(threads[index]) == PR_FAILURE) {
117 for (index = 0; index < num_threads; index++) {
118 if (PR_JoinThread(threads[index]) == PR_FAILURE) {
134 for (index = 0; index < num_threads; index++) {
135 /* fds[2 * index] was passed to and closed by threads[index]. */
136 if (PR_Close(fds[2 * index + 1]) == PR_FAILURE) {