Merge pull request #3469 from sarahmarshy/patch-12

Remove invalid thread::start example
pull/3493/head
Martin Kojtal 2016-12-21 15:09:53 +00:00 committed by GitHub
commit eb3dc2d2c8
1 changed files with 3 additions and 3 deletions

View File

@ -48,14 +48,14 @@ namespace rtos {
* void blink(DigitalOut *led) {
* while (running) {
* *led = !*led;
* Thread::wait(1000);
* wait(1);
* }
* }
*
* // Spawns a thread to run blink for 5 seconds
* int main() {
* thread.start(led1, blink);
* Thread::wait(5000);
* thread.start(callback(blink, &led1));
* wait(5);
* running = false;
* thread.join();
* }