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:
parent
5cda460f19
commit
0a3c2b80ea
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user