-
I would like to implement an object with the thread object being a part of the class. Using the K_THREAD_STACK_DEFINE results in errors. A MWE I have, is like this:
But this results in errors during the build:
So, how does one go about including the thread as member variable within the class? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Try to use |
Beta Was this translation helpful? Give feedback.
-
I did come across this macro but wasn't sure, since it mentions something on the lines that this shouldn't be used.
So, now I did test using this macro and it works 👍, but am not sure if this is a long term solution, with the warning about this being deprecated. One more question, regarding this macro. The docs mention |
Beta Was this translation helpful? Give feedback.
Try to use
K_THREAD_STACK_MEMBER
that can be embedded within other data structures.