The fact that a thread is timing out was tracked via two flags: the K_TIMING thread flag bit, and the thread's timeout's delta_ticks_from_prev being -1 or not. This duplication could potentially cause discrepancies if the two flags got out-of-sync, and there was no benfits to having both. Since timeouts that are not parts of a thread rely on the value of delta_ticks_from_prev, standardize on it. Since the K_TIMING bit is removed from the thread's flags, K_READY would not reflect the reality anymore. It is removed and replaced by _is_thread_prevented_froM_running(), which looks at the state flags that are relevant. A thread that is ready now is not prevented from running and does not have an active timeout. Change-Id: I902ef9fb7801b00626df491f5108971817750daa Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com> |
||
|---|---|---|
| .. | ||
| gen_offset.h | ||
| kernel_offsets.h | ||
| kernel_structs.h | ||
| ksched.h | ||
| nano_internal.h | ||
| offsets_short.h | ||
| timeout_q.h | ||
| wait_q.h | ||