summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2014-09-02 17:21:31 +0800
committerGrissiom <[email protected]>2014-09-02 17:21:31 +0800
commitd4133990b0736fb6b845d80ffe002f8e70881e9e (patch)
treef5ca130cf2efc323aef5917d74c4881cc8ec4e47 /tools
parentbe9aa36abff08a3030aee6aad47496af731763bd (diff)
kernel/idle: fix rt_thread_idle_excute in high optimization level
The rt_list_isempty has prototype of "int rt_list_isempty(const rt_list_t *l)". So the compiler has a good reason that the rt_thread_defunct list does not change within rt_thread_idle_excute thus optimize the "while" loop into a "if". So add the volatile qualifier when test against the rt_thread_defunc list.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions