[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

@@ -35,9 +35,21 @@ struct retry_timer {
};
extern void start_timer ( struct retry_timer *timer );
extern void start_timer_nodelay ( struct retry_timer *timer );
extern void start_timer_fixed ( struct retry_timer *timer,
unsigned long timeout );
extern void stop_timer ( struct retry_timer *timer );
/**
* Start timer with no delay
*
* @v timer Retry timer
*
* This starts the timer running with a zero timeout value.
*/
static inline void start_timer_nodelay ( struct retry_timer *timer ) {
start_timer_fixed ( timer, 0 );
}
/**
* Test to see if timer is currently running
*