Skip to content

Commit eb3dc2d

Browse files
authored
Merge pull request #3469 from sarahmarshy/patch-12
Remove invalid thread::start example
2 parents 3d620f9 + ee7e21d commit eb3dc2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rtos/Thread.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ namespace rtos {
4848
* void blink(DigitalOut *led) {
4949
* while (running) {
5050
* *led = !*led;
51-
* Thread::wait(1000);
51+
* wait(1);
5252
* }
5353
* }
5454
*
5555
* // Spawns a thread to run blink for 5 seconds
5656
* int main() {
57-
* thread.start(led1, blink);
58-
* Thread::wait(5000);
57+
* thread.start(callback(blink, &led1));
58+
* wait(5);
5959
* running = false;
6060
* thread.join();
6161
* }

0 commit comments

Comments
 (0)