about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorUlrik Sverdrup <root@localhost>2015-05-11 00:38:47 +0200
committerUlrik Sverdrup <root@localhost>2015-05-11 03:41:54 +0200
commit098040f8fc8a0928bec25382066b5318c63e2a31 (patch)
tree6a3acb71cc14a3130b94d5a57dcc3d3207683060 /src/libstd/thread
parent02b8e4e6cf6f3fc3a7d31f348fc82bafa0165e3a (diff)
downloadrust-098040f8fc8a0928bec25382066b5318c63e2a31.tar.gz
rust-098040f8fc8a0928bec25382066b5318c63e2a31.zip
docs: Link from tls macros to relevant docs
Fixes #25233
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/local.rs2
-rw-r--r--src/libstd/thread/scoped_tls.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index 41bdf034705..2e043c58a5d 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -85,6 +85,8 @@ pub struct LocalKey<T> {
 }
 
 /// Declare a new thread local storage key of type `std::thread::LocalKey`.
+///
+/// See [LocalKey documentation](thread/struct.LocalKey.html) for more information.
 #[macro_export]
 #[stable(feature = "rust1", since = "1.0.0")]
 #[allow_internal_unstable]
diff --git a/src/libstd/thread/scoped_tls.rs b/src/libstd/thread/scoped_tls.rs
index 35684a1f390..e195c3aaa3f 100644
--- a/src/libstd/thread/scoped_tls.rs
+++ b/src/libstd/thread/scoped_tls.rs
@@ -66,6 +66,8 @@ pub struct ScopedKey<T> { #[doc(hidden)] pub inner: __impl::KeyInner<T> }
 ///
 /// This macro declares a `static` item on which methods are used to get and
 /// set the value stored within.
+///
+/// See [ScopedKey documentation](thread/struct.ScopedKey.html) for more information.
 #[macro_export]
 #[allow_internal_unstable]
 macro_rules! scoped_thread_local {