summaryrefslogtreecommitdiff
path: root/src/clock.c
diff options
context:
space:
mode:
authorshaojinchun <[email protected]>2019-11-05 08:41:38 +0800
committershaojinchun <[email protected]>2019-11-05 08:41:38 +0800
commite03ac83ad3d22c578e367550d2ff714b53e79799 (patch)
tree5330284b0bd13a61d0c09dd511a4124dc2b5e8ad /src/clock.c
parent9a38bba1689ff1e73500584023051cced977a5c5 (diff)
将yield状态置于tcb的stat位域中
Diffstat (limited to 'src/clock.c')
-rw-r--r--src/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clock.c b/src/clock.c
index e288ff58a9..9b54101363 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -89,7 +89,7 @@ void rt_tick_increase(void)
/* change to initialized tick */
thread->remaining_tick = thread->init_tick;
- thread->can_yield = RT_TRUE;
+ thread->stat |= RT_THREAD_STAT_YIELD;
/* yield */
rt_thread_yield();