Skip to content

Commit 265dc60

Browse files
committed
Edit Task 3 readme to clarify code snippet
1 parent 091b709 commit 265dc60

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

task-03/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ void *thread_handler(void *arg);
88
Use [`thread_create()`](https://doc.riot-os.org/thread_8h.html#a87c94d383e64a09974fc8665f82a99b3) from
99
[`thread.h`](https://doc.riot-os.org/thread_8h.html) to start it
1010
```C
11-
pid = thread_create(stack, sizeof(stack),
11+
thread_create(stack, sizeof(stack),
1212
THREAD_PRIORITY_MAIN - 1,
1313
THREAD_CREATE_STACKTEST,
1414
thread_handler,
1515
NULL, "thread");
1616
```
17+
thread_create returns a kernel_pid_t type, which can be helpful to assign to a variable (but not necessary for this lesson).
1718

1819
## Task 3.1: Start a thread
1920
* Start the thread `"thread"` from within [`main()`](main.c#L15-L25)

0 commit comments

Comments
 (0)