mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 06:22:59 +03:00
[retry] Add start_timer_fixed()
Allow for timers to be started with fixed timeouts.
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user