mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-09 01:02:47 +02:00
commit
f217cd12a2
@ -4,8 +4,8 @@ Rust uses the type system to enforce synchronization of shared data. This is
|
||||
primarily done via two types:
|
||||
|
||||
* [`Arc<T>`][1], atomic reference counted `T`: handled sharing between threads and
|
||||
takes care to deallocate `T` when the last thread exists,
|
||||
* [`Mutex<T>`][2]: ensures mutual exclusion for to the `T` value.
|
||||
takes care to deallocate `T` when the last thread exits,
|
||||
* [`Mutex<T>`][2]: ensures mutual exclusion access to the `T` value.
|
||||
|
||||
[1]: https://doc.rust-lang.org/std/sync/struct.Arc.html
|
||||
[2]: https://doc.rust-lang.org/std/sync/struct.Mutex.html
|
||||
|
Loading…
Reference in New Issue
Block a user