Lines Matching refs:us
160 int us, them;
162 us = (getpindex() * lm_optT) + gettindex();
163 them = (us + 1) % (lm_optP * lm_optT);
165 ts->ts_id = us;
167 /* lock index asignment for us and them */
168 ts->ts_us0 = (us * 2);
169 ts->ts_us1 = (us * 2) + 1;
170 if (us < nthreads - 1) {
200 /* allow them to block us again */
209 /* wait for them to unblock us */