Add DeadlineTimer class

This commit is contained in:
Vinnie Falco
2013-07-08 12:35:50 -07:00
parent d798330f44
commit bdfb19fe38
9 changed files with 356 additions and 10 deletions

View File

@@ -114,18 +114,17 @@ public:
void stop (bool const wait);
/**
Determine if the thread needs interruption.
/** Determine if the thread needs interruption.
Should be called periodically by the idle function. If interruptionPoint
returns true or throws, it must not be called again until the idle function
returns and is re-entered.
Should be called periodically by the idle function. If interruptionPoint
returns true or throws, it must not be called again until the idle function
returns and is re-entered.
@invariant No previous calls to interruptionPoint() made after the idle
function entry point returned `true`.
@invariant No previous calls to interruptionPoint() made after the idle
function entry point returned `true`.
@return `false` if the idle function may continue, or `true` if the
idle function must return as soon as possible.
@return `false` if the idle function may continue, or `true` if the
idle function must return as soon as possible.
*/
bool interruptionPoint ();