Lines Matching defs:index
173 block(int index)
175 (void) pthread_mutex_lock(&mxs[index]);
176 while (conds[index] != 0) {
177 (void) pthread_cond_wait(&cvs[index], &mxs[index]);
179 conds[index] = 1;
180 (void) pthread_mutex_unlock(&mxs[index]);
186 unblock(int index)
188 (void) pthread_mutex_lock(&mxs[index]);
189 conds[index] = 0;
191 (void) pthread_mutex_unlock(&mxs[index]);
192 (void) pthread_cond_signal(&cvs[index]);
194 (void) pthread_cond_signal(&cvs[index]);
195 (void) pthread_mutex_unlock(&mxs[index]);
218 /* lock index asignment for us and them */