Commit 4930934
timer: prevent infinite loop on one-shot timer start (#38)
* timer: prevent infinite loop on one-shot timer start
One-shot timers that expire after a single tick could immediately
transition to a dormant state, despite xTimerCommandSent being pdTRUE.
This situation resulted in a potential deadlock due to an infinite
loop in the timer activation process.
Signed-off-by: wangfei_chen <[email protected]>
* Code review suggestions
Signed-off-by: Gaurav Aggarwal <[email protected]>
---------
Signed-off-by: wangfei_chen <[email protected]>
Signed-off-by: Gaurav Aggarwal <[email protected]>
Co-authored-by: wangfei_chen <[email protected]>
Co-authored-by: Gaurav Aggarwal <[email protected]>1 parent ae1d3f0 commit 4930934
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
276 | 281 | | |
277 | 282 | | |
278 | 283 | | |
| |||
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
289 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
290 | 297 | | |
291 | 298 | | |
292 | 299 | | |
| |||
0 commit comments