Commit Graph

5 Commits (13770361bb8879065cc524889db478f692a3be7f)

Author SHA1 Message Date
DipSwitch 0bb4748a94 core: Fix/refactor function naming in core/incude/irq.h 7 years ago
Kaspar Schleiser 2b010b5337 core: rename tcb_t -> thread_t, move into thread.h 7 years ago
René Kijewski 5b7c24d9e1 sys: doc: pipe.h spams the manual
This PR adds a new group for the pipe module, so the .h file does not
spam the manual in Modules/System.
8 years ago
René Kijewski 677d690e2b core: introduce thread_yield_higher(), yield less
Fixes #1708.

Currently involuntary preemption causes the current thread not only to
yield for a higher prioritized thread, but all other threads of its own
priority class, too.

This PR adds the function `thread_yield_higher()`, which will yield the
current thread in favor of higher prioritized functions, but not for
threads of its own priority class.

Boards now need to implement `thread_yield_higher()` instead of
`thread_yield()`, but `COREIF_NG` boards are not affected in any way.

`thread_yield()` retains its old meaning: yield for every thread that
has the same or a higher priority.

This PR does not touch the occurrences of `thread_yield()` in the periph
drivers, because the author of this PR did not look into the logic of
the various driver implementations.
9 years ago
René Kijewski 0ab1b86e5f Add generic `char` pipe implementation 9 years ago