#include <BundleCore.h>
Public Member Functions | |
AlarmImpl (ExpirationHandler *h) | |
virtual | ~AlarmImpl () |
void | schedule (u_int) |
How many milliseconds in the future to schedule this alarm. | |
u_int | time_remaining () const |
Milliseconds remaining until alarm expires. | |
void | cancel () |
Disable the alarm; do not execute the handler. | |
bool | pending () const |
Accessors. | |
bool | cancelled () const |
Accessors. | |
Public Attributes | |
bool | pending_ |
bool | cancelled_ |
Definition at line 202 of file BundleCore.h.
prophet::AlarmImpl::AlarmImpl | ( | ExpirationHandler * | h | ) | [inline] |
Definition at line 205 of file BundleCore.h.
virtual prophet::AlarmImpl::~AlarmImpl | ( | ) | [inline, virtual] |
Definition at line 208 of file BundleCore.h.
void prophet::AlarmImpl::cancel | ( | ) | [inline, virtual] |
Disable the alarm; do not execute the handler.
It is expected that the host's timer implementation will cleanup a cancelled Alarm's memory ...
Implements prophet::Alarm.
Definition at line 212 of file BundleCore.h.
bool prophet::AlarmImpl::cancelled | ( | ) | const [inline, virtual] |
bool prophet::AlarmImpl::pending | ( | ) | const [inline, virtual] |
void prophet::AlarmImpl::schedule | ( | u_int | milliseconds | ) | [inline, virtual] |
How many milliseconds in the future to schedule this alarm.
Implements prophet::Alarm.
Definition at line 210 of file BundleCore.h.
Referenced by prophet::BundleCoreTestImpl::create_alarm().
u_int prophet::AlarmImpl::time_remaining | ( | ) | const [inline, virtual] |
Milliseconds remaining until alarm expires.
Implements prophet::Alarm.
Definition at line 211 of file BundleCore.h.
Definition at line 215 of file BundleCore.h.
Definition at line 215 of file BundleCore.h.