1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/bench_thread_flags_pingpong
Marian Buschsieweke eb1279005c
tests: Cleanup access to internal variables
Replace direct accesses to sched_active_thread and sched_active_pid with
the helper functions thread_getpid() and thread_get_active(). This serves
two purposes:

1. It makes accidental writes to those variable from outside core less likely.
2. Casting off the volatile qualifier is now well contained to those two
   functions
2020-08-24 09:08:01 +02:00
..
tests
main.c tests: Cleanup access to internal variables 2020-08-24 09:08:01 +02:00
Makefile
Makefile.ci
README.md

About

This test measures the number of times one thread can set (and wakeup) another thread using thread_flags(). The result amounts to the number of times the thread flag was set, which is half the number of context switches incurred in that time.

This test application intentionally duplicates code with some similar benchmark applications in order to be able to compare code sizes.