Lines Matching refs:dlil_read_count
171 static unsigned long dlil_read_count = 0;
245 old_value = dlil_read_count;
249 tsleep(&dlil_read_count, PRIBIO, "dlil_read_count", 1);
254 } while (!OSCompareAndSwap((UInt32)old_value, (UInt32)new_value, (UInt32*)&dlil_read_count));
264 OSDecrementAtomic((SInt32*)&dlil_read_count);
266 if (dlil_read_count == dlil_writer_waiting)
279 OSBitOrAtomic((UInt32)dlil_writer_waiting, (UInt32*)&dlil_read_count);
281 if (dlil_read_count == dlil_writer_waiting) {
298 OSBitAndAtomic((UInt32)~dlil_writer_waiting, (UInt32*)&dlil_read_count);
301 wakeup(&dlil_read_count);