malloc thread safe


Platform: cortex m0

I want to use malloc safely in a multitasking system. I have some questions about the official instructions (as shown in the figure below).

my question is:
_mutex_* functions refer to weakly declared functions in the library:
These three, if they are:
I am in the project: __attribute__((used)) void _mutex_release (void* mutex)
{//do something}
__attribute__((used)) void _mutex_acquire(void* mutex)
{//do something}
But these functions are not called when the program is running. I want to know how to ensure thread safety?


Parents Reply Children
No data
More questions in this forum
There are no posts to show. This could be because there are no posts in this forum or due to a filter.