Lines Matching refs:now
151 static uint32_t ledger_check_needblock(ledger_t l, uint64_t now);
491 ledger_refill(uint64_t now, ledger_t ledger, int entry)
518 elapsed = now - le->le_last_refill;
539 periods = (now - le->le_last_refill) / period;
548 * If we've completely refilled the pool, set the refill time to now.
553 le->le_last_refill = now;
568 uint64_t now;
574 now = mach_absolute_time();
575 if ((now - le->le_last_refill) > le->le_refill_period)
576 ledger_refill(now, ledger, entry);
598 * there are any threads blocked on this entry, now would
800 uint64_t now;
845 now = mach_absolute_time();
848 block |= ledger_check_needblock(thl, now);
850 block |= ledger_check_needblock(l, now);
871 ledger_check_needblock(ledger_t l, uint64_t now)
886 if ((le->le_last_refill + le->le_refill_period) > now) {
887 ledger_refill(now, l, i);
940 * deficit. Or maybe we're supposed to die now.
1010 uint64_t now = mach_absolute_time();
1035 abstime_to_nsecs(now - le->le_last_refill);
1077 * units. For now I'll handwave and say that the ledger() system