Collaboration diagram for ACE_Countdown_Time:
Public Member Functions
|ACE_Countdown_Time (ACE_Time_Value *max_wait_time)|
|Cache the max_wait_time and call |
|Cache the current time and enter a start state. |
|bool||stopped (void) const|
|Returns true if we've already been stopped, else false. |
Private Member Functions
|ACE_Countdown_Time (const ACE_Countdown_Time &)|
|ACE_Countdown_Time &||operator= (const ACE_Countdown_Time &)|
|Maximum time we were willing to wait. |
|Beginning of the start time. |
|Keeps track of whether we've already been stopped. |
This class has a side-effect on the
max_wait_time -- every time the <stop> method is called the <max_wait_time> is updated.
|ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Countdown_Time::ACE_Countdown_Time||(||ACE_Time_Value *||max_wait_time||)|
Cache the max_wait_time and call
Destructor, makes sure the max_wait_time that got passed as pointer to the constructor is updated with the time elapsed.
|ACE_Countdown_Time::ACE_Countdown_Time||(||const ACE_Countdown_Time &||)||
|ACE_Countdown_Time& ACE_Countdown_Time::operator=||(||const ACE_Countdown_Time &||)||
Cache the current time and enter a start state.
Subtract the elapsed time from max_wait_time_ and enter a stopped state.
Returns true if we've already been stopped, else false.
Calls stop and then start. max_wait_time_ is modified by the call to stop.
Maximum time we were willing to wait.
Beginning of the start time.
Keeps track of whether we've already been stopped.