[retry] Add start_timer_fixed()

Allow for timers to be started with fixed timeouts.
This commit is contained in:
Michael Brown
2008-06-11 09:37:58 +01:00
parent 3a2c8a2690
commit 32e8ab4df0
2 changed files with 17 additions and 6 deletions

View File

@@ -74,15 +74,14 @@ void start_timer ( struct retry_timer *timer ) {
}
/**
* Start timer with no delay
* Start timer with a specified fixed timeout
*
* @v timer Retry timer
*
* This starts the timer running with a zero timeout value.
* @v timeout Timeout, in ticks
*/
void start_timer_nodelay ( struct retry_timer *timer ) {
void start_timer_fixed ( struct retry_timer *timer, unsigned long timeout ) {
start_timer ( timer );
timer->timeout = 0;
timer->timeout = timeout;
}
/**