We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6ad4606 + 265dc60 commit 1788638Copy full SHA for 1788638
1 file changed
task-03/README.md
@@ -8,12 +8,13 @@ void *thread_handler(void *arg);
8
Use [`thread_create()`](https://doc.riot-os.org/thread_8h.html#a87c94d383e64a09974fc8665f82a99b3) from
9
[`thread.h`](https://doc.riot-os.org/thread_8h.html) to start it
10
```C
11
-pid = thread_create(stack, sizeof(stack),
+thread_create(stack, sizeof(stack),
12
THREAD_PRIORITY_MAIN - 1,
13
THREAD_CREATE_STACKTEST,
14
thread_handler,
15
NULL, "thread");
16
```
17
+thread_create returns a kernel_pid_t type, which can be helpful to assign to a variable (but not necessary for this lesson).
18
19
## Task 3.1: Start a thread
20
* Start the thread `"thread"` from within [`main()`](main.c#L15-L25)
0 commit comments