Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 3 months ago.
(void const *args) where can I find documentation on what gets passed to a thread?
title says it.
Thank you!
1 Answer
10 years, 3 months ago.
See for example the mutex section here: https://mbed.org/handbook/RTOS
a void const *arg is a pointer of not a specific type. So when making the thread you need to give it a pointer, and convert that pointer to a void pointer, and in the thread itself convert it back to whatever you want it to be.