Commit Graph

5 Commits (9ec615f8c2e450caed2e3618de35e8c5bc291153)

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