diff options
| author | shaojinchun <[email protected]> | 2019-10-11 09:13:40 +0800 |
|---|---|---|
| committer | shaojinchun <[email protected]> | 2019-10-12 10:51:47 +0800 |
| commit | 234af6aaa2ec2fd5c8c758a8f9fa29553ddeaf3f (patch) | |
| tree | 83e0c2fb86cb203117d537e613bab627efb72c91 /src/thread.c | |
| parent | 413fcba30a532e416d930e6209c331d05e2d2887 (diff) | |
修正相同优先级任务切换太频繁的问题
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c index a88729e52c..cf42c72a1b 100644 --- a/src/thread.c +++ b/src/thread.c @@ -159,6 +159,7 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread, /* tick init */ thread->init_tick = tick; thread->remaining_tick = tick; + thread->can_yield = 0; /* error and flags */ thread->error = RT_EOK; |
