1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/deferred_yield_higher
Kaspar Schleiser fe1d9981a8 tests/deferred_yield_higher: initial commit
This test verifies that a thread can call `thread_yield_higher()` with IRQs
disabled, and that the actual context switch is deferred until IRQs are
re-enabled.
2021-08-24 09:49:53 +02:00
..
tests tests/deferred_yield_higher: initial commit 2021-08-24 09:49:53 +02:00
main.c tests/deferred_yield_higher: initial commit 2021-08-24 09:49:53 +02:00
Makefile tests/deferred_yield_higher: initial commit 2021-08-24 09:49:53 +02:00
Makefile.ci tests/deferred_yield_higher: initial commit 2021-08-24 09:49:53 +02:00
README.md tests/deferred_yield_higher: initial commit 2021-08-24 09:49:53 +02:00

Introduction

This test verifies that a thread can call "thread_yield_higher()" with IRQs disabled, and that the actual context switch is deferred until IRQs are re-enabled.

For the test to be successful, the printed messages must be in order, as follows:

1. post yield
2. second thread scheduled
3. post irq enable