From 7b19574a2c2faac766c5192b243e5c361e449f3b Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Sun, 16 Mar 2014 13:24:33 +0100 Subject: [PATCH] Mention Share in the tutorial --- src/doc/tutorial.md | 4 ++++ 1 file changed, 4 insertions(+) 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.