Add an idea of chopstx_critical.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
14
NEWS
14
NEWS
@@ -7,11 +7,15 @@ NEWS - Noteworthy changes
|
|||||||
We used to have (an experimental) feature of higher priority of thread
|
We used to have (an experimental) feature of higher priority of thread
|
||||||
(>= CHOPSTX_PRIO_INHIBIT_PREEMPTION). The feature offered: When a
|
(>= CHOPSTX_PRIO_INHIBIT_PREEMPTION). The feature offered: When a
|
||||||
thread has such a priority, Chostx guarantees that it keeps running
|
thread has such a priority, Chostx guarantees that it keeps running
|
||||||
and no other threads can preempt the thread until the thread
|
and no other threads can preempt the thread. I had introduced this
|
||||||
voluntarily leaves running. I had introduced this (questionable)
|
(questionable) feature as an excuse against no support of
|
||||||
feature as an excuse against no support of masking/unmasking interrupt
|
masking/unmasking interrupt API. From the experience of Chopstx, it
|
||||||
API. From the experience of Chopstx, it is rather consistent to
|
is rather consistent to remove this feature. It was over engineering
|
||||||
remove this feature.
|
to support a thread having such a special priority.
|
||||||
|
|
||||||
|
** New feature
|
||||||
|
chopstx_critical (void *func (*), *arg)
|
||||||
|
Let run FUNC with ARG, under CPU scheduler lock (== no preemption).
|
||||||
|
|
||||||
|
|
||||||
* Major changes in Chopstx 1.17
|
* Major changes in Chopstx 1.17
|
||||||
|
|||||||
Reference in New Issue
Block a user