7 years, 6 months ago.  This question has been closed. Reason: Opinion based - no single answer

Threads: Functions with parameters

Hello mbed-community In my project I have two threads, one for the main attraction and the second one for my bluetooth-connection-ability. My Project, to be specific, is a led-matrix with a bluetooth module.

Now here's the problem, the function, which is being called with the bluetooth-Thread contains parameters, which I'm not able to pass.

My Threads and the function:

void bluetooth_Matrix(int m_height,int m_length)
{/*Stuff*/}
Thread thread_bluetooth(bluetooth_Matrix);
//After Lurking through stack overflow
Thread thread_bluetooth(bluetooth_Matrix,m_height,m_length);

Is it even possible to pass arguments through a thread initialisation? If yes, how can it be done?