#include <wireless-phy.h>
Inheritance diagram for Sleep_Timer:


Definition at line 56 of file wireless-phy.h.
Public Types | |
| enum | TimerStatus { TIMER_IDLE, TIMER_PENDING, TIMER_HANDLING } |
Public Member Functions | |
| void | cancel () |
| void | force_cancel () |
| void | resched (double delay) |
| void | sched (double delay) |
| Sleep_Timer (WirelessPhy *a) | |
| int | status () |
Protected Member Functions | |
| virtual void | expire (Event *e) |
| virtual void | handle (Event *) |
Protected Attributes | |
| WirelessPhy * | a_ |
| Event | event_ |
| int | status_ |
|
|
Definition at line 94 of file timer-handler.h. 00094 { TIMER_IDLE, TIMER_PENDING, TIMER_HANDLING };
|
|
|
Definition at line 58 of file wireless-phy.h. 00058 : TimerHandler() { a_ = a; }
|
|
|
|
Implements TimerHandler. Definition at line 60 of file wireless-phy.cc. References a_, and WirelessPhy::UpdateSleepEnergy(). 00060 { 00061 a_->UpdateSleepEnergy(); 00062 }
Here is the call graph for this function: ![]() |
|
|
|
Implements Handler. Reimplemented in EmpFtpTrafSession, EmpWebPage, EmpWebTrafSession, HBTimer, WebPage, and WebTrafSession. Definition at line 94 of file timer-handler.cc. References abort(), TimerHandler::expire(), TimerHandler::status_, TimerHandler::TIMER_HANDLING, TimerHandler::TIMER_IDLE, and TimerHandler::TIMER_PENDING. Referenced by WebTrafSession::handle(), WebPage::handle(), HBTimer::handle(), EmpWebTrafSession::handle(), EmpWebPage::handle(), and EmpFtpTrafSession::handle(). 00095 { 00096 if (status_ != TIMER_PENDING) // sanity check 00097 abort(); 00098 status_ = TIMER_HANDLING; 00099 expire(e); 00100 // if it wasn't rescheduled, it's done 00101 if (status_ == TIMER_HANDLING) 00102 status_ = TIMER_IDLE; 00103 }
Here is the call graph for this function: ![]() |
|
|
|
|
|
Definition at line 61 of file wireless-phy.h. Referenced by expire(), and Sleep_Timer(). |
|
|
Definition at line 103 of file timer-handler.h. Referenced by TimerHandler::_cancel(), TimerHandler::_sched(), WebPage::start(), and EmpWebPage::start(). |
|
1.4.6