summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-11 23:34:15 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-11 23:52:56 +0100
commitd445fa8e41e5591c80727bbd59ca36620e03aea2 (patch)
treecbfbcb6473c3a8ba97c5a09350723d6c403f8f91 /include/string.h
parent69470fda09aee6ab722b3fcdec5f42e687101f29 (diff)
thread: move the yield flag and the preemption level to the run queue
There is really no need to make the yield flag and the preemption level thread-local on a single processor system, so turn them into globals, as members of the unique run queue. This slightly improves preemption control functions by removing the indirection of the current thread. Another motivation for this change is that X15 is already an example of a thread-local preemption counter, because of SMP. As a result, it made sense to show another way, which is actually the common one on small single processor embedded systems.
Diffstat (limited to 'include/string.h')
0 files changed, 0 insertions, 0 deletions