missed one
This commit is contained in:
parent
31bec788f4
commit
25db84206b
@ -27,8 +27,8 @@ impl Mutex {
|
|||||||
pub const fn new() -> Mutex {
|
pub const fn new() -> Mutex {
|
||||||
// Might be moved to a different address, so it is better to avoid
|
// Might be moved to a different address, so it is better to avoid
|
||||||
// initialization of potentially opaque OS data before it landed.
|
// initialization of potentially opaque OS data before it landed.
|
||||||
// Be very careful using this newly constructed `Mutex`, it should
|
// Be very careful using this newly constructed `Mutex`, reentrant
|
||||||
// be initialized by calling `init()` first!
|
// locking is undefined behavior until `init` is called!
|
||||||
Mutex { inner: UnsafeCell::new(libc::PTHREAD_MUTEX_INITIALIZER) }
|
Mutex { inner: UnsafeCell::new(libc::PTHREAD_MUTEX_INITIALIZER) }
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
Reference in New Issue
Block a user