Browse Source

[retry] Expose retry_poll() to explicitly poll all running timers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
de802310bc
2 changed files with 12 additions and 3 deletions
  1. 1
    0
      src/include/ipxe/retry.h
  2. 11
    3
      src/net/retry.c

+ 1
- 0
src/include/ipxe/retry.h View File

85
 extern void start_timer_fixed ( struct retry_timer *timer,
85
 extern void start_timer_fixed ( struct retry_timer *timer,
86
 				unsigned long timeout );
86
 				unsigned long timeout );
87
 extern void stop_timer ( struct retry_timer *timer );
87
 extern void stop_timer ( struct retry_timer *timer );
88
+extern void retry_poll ( void );
88
 
89
 
89
 /**
90
 /**
90
  * Start timer with no delay
91
  * Start timer with no delay

+ 11
- 3
src/net/retry.c View File

177
 }
177
 }
178
 
178
 
179
 /**
179
 /**
180
- * Single-step the retry timer list
180
+ * Poll the retry timer list
181
  *
181
  *
182
- * @v process		Retry timer process
183
  */
182
  */
184
-static void retry_step ( struct process *process __unused ) {
183
+void retry_poll ( void ) {
185
 	struct retry_timer *timer;
184
 	struct retry_timer *timer;
186
 	unsigned long now = currticks();
185
 	unsigned long now = currticks();
187
 	unsigned long used;
186
 	unsigned long used;
200
 	}
199
 	}
201
 }
200
 }
202
 
201
 
202
+/**
203
+ * Single-step the retry timer list
204
+ *
205
+ * @v process		Retry timer process
206
+ */
207
+static void retry_step ( struct process *process __unused ) {
208
+	retry_poll();
209
+}
210
+
203
 /** Retry timer process */
211
 /** Retry timer process */
204
 PERMANENT_PROCESS ( retry_process, retry_step );
212
 PERMANENT_PROCESS ( retry_process, retry_step );

Loading…
Cancel
Save