-
Hello, I was wondering about proper destruction of For reference, I am running the zephyr LTS version (3.7.0). Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The Regarding your comment about the double-linked list used for tracking. The one that is problematic is related to the object core subsystem, which is used to track (statistic) usage of kernel objects. From what I can see, objcore doesn't support the dynamic use of mutex/semaphore objects. This is where we would need a |
Beta Was this translation helpful? Give feedback.
The
xxx_init()
function assumes that the object is "already created", that is the pointer passed refer to a valid memory area that contains the underlying data structure.If you are using dynamic memory, you can therefore dispose the objects by simply freeing the memory. This assumes, of course, that it is safe to do so, like the mutex is unlocked and no thread will use this mutex once destroyed.
Regarding your comment about the double-linked list used for tracking. The one that is problematic is related to the object core subsystem, which is used…