Skip to content

Calling k_thread_create with K_FOREVER timeout and never starting it #52017

Closed Answered by yashi
adrdub asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know what is the definition of safe for you. But your system should work without those threads, given that each k_thread_create() is given a unique set of arguments.

To remove a thread from the Kernel, you should call k_thread_abort(), then free all resources it had. Just grep through the source code and you'll see many usage of k_thread_abort().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adrdub
Comment options

Answer selected by adrdub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants