Lines Matching refs:idle
2658 CARD32 idle;
2667 idle = GetTimeInMillis() - LastEventTime(deviceid).milliseconds;
2668 *pValue_return = idle;
2678 int64_t idle, old_idle;
2686 IdleTimeQueryValue(counter, &idle);
2687 counter->value = idle; /* push, so CheckTrigger works */
2691 * where the idle time is reset and the time we actually get here. idle
2695 if (less && idle > *less &&
2698 } else if (less && idle <= *less) {
2700 * We've been idle for less than the threshold value, and someone
2703 * current idle time, and if any succeed, bomb out of select()
2715 * We've been called exactly on the idle time, but we have a
2717 * idle time greater than this. Schedule a wakeup for the next
2720 if (idle == *less)
2726 * idle less than it, schedule a wakeup for sometime in the future.
2727 * If we've been idle more than it, and someone wants to know about
2731 if (idle < *greater) {
2732 AdjustWaitForDelay(wt, *greater - idle);
2750 IdleTimeCheckBrackets(SyncCounter *counter, int64_t idle,
2753 if ((greater && idle >= *greater) ||
2754 (less && idle <= *less)) {
2755 SyncChangeCounter(counter, idle);
2758 SyncUpdateCounter(counter, idle);
2768 int64_t idle;
2773 IdleTimeQueryValue(pCounter, &idle);
2783 if (idle != 0) {
2790 IdleTimeCheckBrackets(counter, idle, less, greater);
2808 /* Reset flag must be zero so we don't force a idle timer reset on
2823 int64_t idle;
2826 IdleTimeQueryValue(NULL, &idle);
2828 idle_time_counter = SyncCreateSystemCounter(name, idle, resolution,