标签: multithreading thread-safety malloc uclibc
ucLibc malloc线程是否安全?
答案 0 :(得分:1)
显然是的,如果定义了__UCLIBC_HAS_THREADS__ malloc.h 包含并声明了互斥量http://git.uclibc.org/uClibc/tree/libc/stdlib/malloc/malloc.h#n133
__UCLIBC_HAS_THREADS__