-
The documentation for examples could use to be expanded with more description of the code to help those who are new to Zephyr. As an example, take the second in the "Classic" examples, "Synchronization":
For someone new to Zephyr (such as myself), there are many questions that could be answered in an example's documentation rather than through searching the entire set of documentation. Getting up to speed quickly, rather than having to read through more material than is currently needed, can be very useful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
this is just to simulate some work done by the thread, a sleep will cause an immediate context switch and the thread total runtime will be very close to zero. There is a comment about this in the code.
Thread entry functions can have up to 3 variables, you do not have to use them. If you do not use them, compiler might complain, hence the ARG_UNUSED to let the compiler know not to complain.
On multi-core system you can pin a thread to a specific core, this demonstrates that. Try this with qemu_x86_64. |
Beta Was this translation helpful? Give feedback.
this is just to simulate some work done by the thread, a sleep will cause an immediate context switch and the thread total runtime will be very close to zero. There is a comment about this in the code.
Thread entry functions can have up to 3 variables, you do not have to use them. If you do not use them, compiler might complain, hence the ARG_UNUSED to let the compiler know not to complain.
On…