mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
902aa29b62
Split out Gunar Schorcht's clever approach to provide thread safe malloc for AVR into a system module and make AVR depend on this. This allows other platforms to also use this.
19 lines
816 B
Plaintext
19 lines
816 B
Plaintext
# Copyright (C) 2020 Otto-von-Guericke-Universität Magdeburg
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
# directory for more details.
|
|
#
|
|
|
|
config MODULE_MALLOC_THREAD_SAFE
|
|
bool
|
|
depends on TEST_KCONFIG
|
|
help
|
|
This module provides wrappers for malloc(), calloc(), realloc(), and
|
|
free() which guarantee mutually exclusive access to heap data
|
|
structures. This linker is also instructed to redirect all calls to
|
|
the corresponding wrappers. As a result, all allocations become thread
|
|
safe without touching the application code or the c library. This module
|
|
is intended to be pulled in automatically if needed. Hence, applications
|
|
never should manually use it.
|