diff options
| author | shaojinchun <[email protected]> | 2019-11-05 08:41:38 +0800 |
|---|---|---|
| committer | shaojinchun <[email protected]> | 2019-11-05 08:41:38 +0800 |
| commit | e03ac83ad3d22c578e367550d2ff714b53e79799 (patch) | |
| tree | 5330284b0bd13a61d0c09dd511a4124dc2b5e8ad /src/clock.c | |
| parent | 9a38bba1689ff1e73500584023051cced977a5c5 (diff) | |
将yield状态置于tcb的stat位域中
Diffstat (limited to 'src/clock.c')
| -rw-r--r-- | src/clock.c | 2 |
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(); |
