mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 19:49:45 +03:00
Add start_timer_nodelay()
This commit is contained in:
@@ -35,6 +35,7 @@ struct retry_timer {
|
||||
};
|
||||
|
||||
extern void start_timer ( struct retry_timer *timer );
|
||||
extern void start_timer_nodelay ( struct retry_timer *timer );
|
||||
extern void stop_timer ( struct retry_timer *timer );
|
||||
|
||||
/**
|
||||
|
||||
@@ -73,6 +73,18 @@ void start_timer ( struct retry_timer *timer ) {
|
||||
timer, timer->start, ( timer->start + timer->timeout ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Start timer with no delay
|
||||
*
|
||||
* @v timer Retry timer
|
||||
*
|
||||
* This starts the timer running with a zero timeout value.
|
||||
*/
|
||||
void start_timer_nodelay ( struct retry_timer *timer ) {
|
||||
start_timer ( timer );
|
||||
timer->timeout = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop timer
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user