mirror of https://github.com/ARMmbed/mbed-os.git
Remove invalid thread::start example
This changes reflects the correct syntax for spawning a thread that will execute a local function with given parameters.pull/3469/head
parent
20eb127f80
commit
dd07d30c7e
|
@ -54,7 +54,7 @@ namespace rtos {
|
|||
*
|
||||
* // Spawns a thread to run blink for 5 seconds
|
||||
* int main() {
|
||||
* thread.start(led1, blink);
|
||||
* thread.start(callback(blink, &led1));
|
||||
* Thread::wait(5000);
|
||||
* running = false;
|
||||
* thread.join();
|
||||
|
|
Loading…
Reference in New Issue