Lines Matching refs:us
161 int us, them;
163 us = (getpindex() * lm_optT) + gettindex();
164 them = (us + 1) % (lm_optP * lm_optT);
166 ts->ts_id = us;
168 /* lock index asignment for us and them */
169 ts->ts_us0 = (us * 2);
170 ts->ts_us1 = (us * 2) + 1;
171 if (us < nthreads - 1) {
201 /* allow them to block us again */
210 /* wait for them to unblock us */