diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-03-16 13:24:33 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-03-20 10:32:53 +0100 |
| commit | 7b19574a2c2faac766c5192b243e5c361e449f3b (patch) | |
| tree | eacdeb4fceca740e565fc1ce56eaf1dfd3115900 /src/doc/tutorial.md | |
| parent | 0aebdaced50eb34f98ce533054d38ee1bf15d209 (diff) | |
| download | rust-7b19574a2c2faac766c5192b243e5c361e449f3b.tar.gz rust-7b19574a2c2faac766c5192b243e5c361e449f3b.zip | |
Mention Share in the tutorial
Diffstat (limited to 'src/doc/tutorial.md')
| -rw-r--r-- | src/doc/tutorial.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index cdb521b96c4..0a417a5a8bf 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -2095,6 +2095,10 @@ and may not be overridden: Types are sendable unless they contain managed boxes, managed closures, or references. +* `Share` - Types that are *threadsafe* +These are types that are safe to be used across several threads with access to +a `&T` pointer. `MutexArc` is an example of a *sharable* type with internal mutable data. + * `Freeze` - Constant (immutable) types. These are types that do not contain anything intrinsically mutable. Intrinsically mutable values include `Cell` in the standard library. |
