zephyr/lib/libc/minimal/source/stdlib
Nicolas Pitre e539bb1979 libc/minimal: restore proper locking for malloc() and friends
Commit 40016a6a92 ("libc/minimal: Use a sys_heap for the malloc
implementation") replaced sys_mem_pool_alloc() with sys_heap_alloc().
The problem is that those aren't equivalent. While the former did
guard against concurrent usage, the later doesn't.

Add the same locking around sys_heap_alloc() that used to be implicit
with sys_mem_pool_alloc().

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2021-02-08 12:40:16 -05:00
..
abort.c libc: minimal: Implement abort(). 2020-10-28 17:02:16 +01:00
atoi.c
bsearch.c libc: minimal: Add bsearch function 2019-04-25 20:39:36 -07:00
exit.c libc: minimal: Implement exit()/_exit() functions. 2019-05-23 09:27:59 -04:00
malloc.c libc/minimal: restore proper locking for malloc() and friends 2021-02-08 12:40:16 -05:00
strtol.c style: add braces around if/while statements 2019-06-06 15:20:21 +02:00
strtoul.c style: add braces around if/while statements 2019-06-06 15:20:21 +02:00