Lines Matching refs:alarm
354 // Registers an alarm 'ac' to go off at time 'timeout_time_in_us'.
356 // then the callback will be re-registered at that time, else the alarm
363 // timeout_time_in_us - the absolute time at which the alarm should go off
364 // ac - the alarm which will be called.
368 // Registers an alarm 'ac' to go off at time: (ApproximateNowInUs() +
374 // re-registered at that time, else the alarm owner is responsible for
385 // which point the alarm should go off.
386 // ac - the alarm which will be called.
394 // Unregister the alarm referred to by iterator_token; Callers should
396 // is called, was unregistered, or OnShutdown was called on that alarm.
398 // iterator_token - iterator to the alarm callback to unregister.
436 // alarm. When functions which are not handling callbacks or alarms call
479 bool ContainsAlarm(EpollAlarmCallbackInterface* alarm) const {
480 return all_alarms_.find(alarm) != all_alarms_.end();
680 // the same alarm twice. One option is to have an implementation in which
706 // OnAlarm on any alarm in this set. This ensures that we do not
986 // Called when an alarm times out. Invalidates an AlarmRegToken.
987 // WARNING: If a token was saved to refer to an alarm callback, OnAlarm must
990 // the unix time (in microseconds) at which this alarm should be signaled
991 // again, or 0 if the alarm should be removed.
995 // Called when the an alarm is registered. Invalidates an AlarmRegToken.
997 // token: the iterator to the the alarm registered in the alarm map.
998 // WARNING: this token becomes invalid when the alarm fires, is
999 // unregistered, or OnShutdown is called on that alarm.
1000 // eps: the epoll server the alarm is registered with.
1005 // Called when the an alarm is unregistered.
1012 // Invalidates the AlarmRegToken that was given when this alarm was
1022 // A simple alarm which unregisters itself on destruction.
1034 // Marks the alarm as unregistered and returns 0. The return value may be
1038 // Marks the alarm as registered, and stores the token.
1042 // Marks the alarm as unregistered.
1045 // Marks the alarm as unregistered.
1048 // If the alarm was registered, unregister it.