1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-15 13:50:27 +02:00

Order Send/Sync before Arc/Mutex (#605)

The Arc/Mutex chapters mention Send/Sync in the speaker notes, and in
fact serve as good illustrations of the traits, so let's define the
traits before referencing them.
This commit is contained in:
Dustin J. Mitchell
2023-05-05 03:50:17 -04:00
committed by GitHub
parent 9cff14ca31
commit d0bf0d7a44
2 changed files with 11 additions and 4 deletions

View File

@ -7,3 +7,10 @@ in that thread. So the question is when you can allocate a value in one thread
and deallocate it in another.
[1]: https://doc.rust-lang.org/std/marker/trait.Send.html
<details>
As an example, a connection to the SQLite library must only be accessed from a
single thread.
</details>