Skip to content

Commit

Permalink
Fix clickable answer
Browse files Browse the repository at this point in the history
  • Loading branch information
verhovsky committed May 20, 2024
1 parent 681a5ea commit db2d621
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions posix/passing_args.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ All arguments must be passed by reference and cast to `(void *)`.

Question: Given their non-deterministic start-up and scheduling, how can you safely pass data to newly created threads?

<detail>
<details>
<summary>Answer (Click to view.)</summary>

*Make sure that all passed data is thread safe - that it can not be changed by other threads. The three examples that follow demonstrate dos and don'ts.*

</detail>
</details>

#### Example 1 - Thread Argument Passing

Expand Down

0 comments on commit db2d621

Please sign in to comment.