Skip to content

Commit e833f70

Browse files
sarahmarshyadbridge
authored andcommitted
Remove invalid thread::start example
This changes reflects the correct syntax for spawning a thread that will execute a local function with given parameters.
1 parent be467a6 commit e833f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtos/Thread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace rtos {
5454
*
5555
* // Spawns a thread to run blink for 5 seconds
5656
* int main() {
57-
* thread.start(led1, blink);
57+
* thread.start(callback(blink, &led1));
5858
* Thread::wait(5000);
5959
* running = false;
6060
* thread.join();

0 commit comments

Comments
 (0)