Skip to content

Commit 25db842

Browse files
committed
missed one
1 parent 31bec78 commit 25db842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/unix/mutex.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ impl Mutex {
2727
pub const fn new() -> Mutex {
2828
// Might be moved to a different address, so it is better to avoid
2929
// initialization of potentially opaque OS data before it landed.
30-
// Be very careful using this newly constructed `Mutex`, it should
31-
// be initialized by calling `init()` first!
30+
// Be very careful using this newly constructed `Mutex`, reentrant
31+
// locking is undefined behavior until `init` is called!
3232
Mutex { inner: UnsafeCell::new(libc::PTHREAD_MUTEX_INITIALIZER) }
3333
}
3434
#[inline]

0 commit comments

Comments
 (0)