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
sarahmarshy 2016-12-19 14:43:38 -06:00 committed by GitHub
parent 20eb127f80
commit dd07d30c7e
1 changed files with 1 additions and 1 deletions

View File

@ -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();