2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-15 07:41:45 +00:00

Add start_timer_nodelay()

This commit is contained in:
Michael Brown 2007-08-13 10:59:00 -07:00
parent 5cda460f19
commit 0a3c2b80ea
2 changed files with 13 additions and 0 deletions

View File

@ -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 );
/**

View File

@ -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
*