1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/malloc_thread_safe
Marian Buschsieweke c790e2eb6d
sys/malloc_thread_safety: use mutex
Disabling IRQs during malloc() provides mutually exclusive access and even is
safe from IRQ context, but is suboptimal for real time scenarios. Instead, the
implementation is changed to use a mutex to provide mutually exclusive access.

As a result, calls to malloc() and free() from IRQ context no longer is
possible. But this this is a really horrible idea to begin with, the impact
should be minimal and the improved real time properties of the system should
make it a good trade-off. An assert() is added to allow easy detection of
regressions and, hence, aid users to fix their code.
2020-12-17 15:39:05 +01:00
..
doc.txt sys/malloc_thread_safe: split out of cpu/atmega_common 2020-12-17 15:39:05 +01:00
Kconfig sys/malloc_thread_safe: split out of cpu/atmega_common 2020-12-17 15:39:05 +01:00
Makefile sys/malloc_thread_safe: split out of cpu/atmega_common 2020-12-17 15:39:05 +01:00
Makefile.include sys/malloc_thread_safe: split out of cpu/atmega_common 2020-12-17 15:39:05 +01:00
malloc_wrappers.c sys/malloc_thread_safety: use mutex 2020-12-17 15:39:05 +01:00