diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-08-13 10:59:00 -0700 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-08-13 10:59:00 -0700 |
commit | 0a3c2b80ea5171cc794131ce29b5cb8d209a4a49 (patch) | |
tree | 4cbb7a4c984e61074ec152568c093dd9ca30cd2a /src/net/retry.c | |
parent | 5cda460f19e91c3cbb664438c4a6d30f188cd69e (diff) | |
download | ipxe-0a3c2b80ea5171cc794131ce29b5cb8d209a4a49.zip ipxe-0a3c2b80ea5171cc794131ce29b5cb8d209a4a49.tar.gz ipxe-0a3c2b80ea5171cc794131ce29b5cb8d209a4a49.tar.bz2 |
Add start_timer_nodelay()
Diffstat (limited to 'src/net/retry.c')
-rw-r--r-- | src/net/retry.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/retry.c b/src/net/retry.c index 6734968..0f711e6 100644 --- a/src/net/retry.c +++ b/src/net/retry.c @@ -74,6 +74,18 @@ void start_timer ( struct retry_timer *timer ) { } /** + * 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 * * @v timer Retry timer |