Hi everyone,
I am new in Mbed os and I was reading the documentation when I saw something that I could not understand. In “API references and tutorials”, in condition variable example, this code is used:
void worker_thread()
{
...
}
int main()
{
Thread thread;
thread.start(worker_thread);
...
}
and in EventFlags example they use the code below:
void worker_thread_fun()
{
...
}
int main()
{
Thread worker_thread;
worker_thread.start(mbed::callback(worker_thread_fun));
...
}
My question is why they use “mbed::callback” in the last example and in the other not.
Thanks for your help.
Best Regards