about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-08-08 18:14:06 +0200
committerRalf Jung <post@ralfj.de>2018-08-08 18:14:06 +0200
commit25db84206b681731960d88558bc53640fe117b09 (patch)
tree8b61e37691935df980dc22c591699b716d68176b
parent31bec788f46c73ab14c72868dc6141141320a058 (diff)
downloadrust-25db84206b681731960d88558bc53640fe117b09.tar.gz
rust-25db84206b681731960d88558bc53640fe117b09.zip
missed one
-rw-r--r--src/libstd/sys/unix/mutex.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/mutex.rs b/src/libstd/sys/unix/mutex.rs
index f0711b60320..efa6e8ec036 100644
--- a/src/libstd/sys/unix/mutex.rs
+++ b/src/libstd/sys/unix/mutex.rs
@@ -27,8 +27,8 @@ impl Mutex {
     pub const fn new() -> Mutex {
         // Might be moved to a different address, so it is better to avoid
         // initialization of potentially opaque OS data before it landed.
-        // Be very careful using this newly constructed `Mutex`, it should
-        // be initialized by calling `init()` first!
+        // Be very careful using this newly constructed `Mutex`, reentrant
+        // locking is undefined behavior until `init` is called!
         Mutex { inner: UnsafeCell::new(libc::PTHREAD_MUTEX_INITIALIZER) }
     }
     #[inline]