Searched refs:us (Results 1 - 6 of 6) sorted by relevance

/libmicro/
H A Dcascade_fcntl.c165 int us, them; local
167 us = (getpindex() * lm_optT) + gettindex();
168 them = (us + 1) % (lm_optP * lm_optT);
170 ts->ts_id = us;
172 /* lock index asignment for us and them */
173 ts->ts_us0 = (us * 4);
174 ts->ts_us1 = (us * 4) + 2;
175 if (us < nthreads - 1) {
205 /* allow them to block us again */
214 /* wait for them to unblock us */
[all...]
H A Dcascade_flock.c161 int us, them; local
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 */
[all...]
H A Dcascade_lockf.c156 int us, them; local
158 us = (getpindex() * lm_optT) + gettindex();
159 them = (us + 1) % (lm_optP * lm_optT);
161 ts->ts_id = us;
163 /* lock index asignment for us and them */
164 ts->ts_us0 = (us * 2);
165 ts->ts_us1 = (us * 2) + 1;
166 if (us < nthreads - 1) {
196 /* allow them to block us again */
205 /* wait for them to unblock us */
[all...]
H A Dcascade_mutex.c160 int us, them; local
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 */
[all...]
H A Dcascade_cond.c211 int us, them; local
213 us = (getpindex() * lm_optT) + gettindex();
214 them = (us + 1) % (lm_optP * lm_optT);
216 ts->ts_id = us;
218 /* lock index asignment for us and them */
219 ts->ts_us0 = (us * 2);
220 ts->ts_us1 = (us * 2) + 1;
221 if (us < nthreads - 1) {
251 /* allow them to block us again */
260 /* wait for them to unblock us */
[all...]
H A Dmprotect.c154 int us; local
158 us = (getpindex() * lm_optT) + gettindex();
160 switch ((us + ts->ts_batch + i) % 2) {

Completed in 12 milliseconds