Lines Matching refs:runcount
129 lock->runcount = 0;
152 /* Test whether only readers are currently running, and whether the runcount
156 if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0))
171 removed us from the waiting_readers, incremented lock->runcount. */
172 if (!(lock->runcount > 0))
185 while (!(lock->runcount + 1 > 0));
188 lock->runcount++;
213 if (!(lock->runcount == 0))
228 removed us from the waiting_writers, set lock->runcount = -1. */
229 if (!(lock->runcount == -1))
242 while (!(lock->runcount == 0));
245 lock->runcount--; /* runcount becomes -1 */
271 /* Test whether only readers are currently running, and whether the runcount
275 if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0))
281 lock->runcount++;
308 if (!(lock->runcount == 0))
314 lock->runcount--; /* runcount becomes -1 */
325 if (lock->runcount < 0)
328 if (!(lock->runcount == -1))
330 lock->runcount = 0;
335 if (!(lock->runcount > 0))
340 lock->runcount--;
342 if (lock->runcount == 0)
349 lock->runcount--;
355 lock->runcount += lock->waiting_readers.count;
368 if (lock->runcount != 0)