You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering about proper destruction of k_mutex and k_sem objects. In both these APIs there are init functions, but no destroy functions. Is this intended or is there another way to destroy them safely ? Or can I dynamically initialize an unlimited amount of them ?
I am asking because I saw that in the implementation, there is something that is added to a a double-linked list for tracking, but did not see how it was removed.
For reference, I am running the zephyr LTS version (3.7.0).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was wondering about proper destruction of
k_mutex
andk_sem
objects. In both these APIs there are init functions, but no destroy functions. Is this intended or is there another way to destroy them safely ? Or can I dynamically initialize an unlimited amount of them ?I am asking because I saw that in the implementation, there is something that is added to a a double-linked list for tracking, but did not see how it was removed.
For reference, I am running the zephyr LTS version (3.7.0).
Thanks in advance !
Beta Was this translation helpful? Give feedback.
All reactions