fixed wording
This commit is contained in:
parent
8a72954d7a
commit
b7a49e7c9e
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ pub unsafe fn raw(m: &Mutex) -> c::PSRWLOCK {
|
|||
impl Mutex {
|
||||
pub const fn new() -> Mutex {
|
||||
Mutex {
|
||||
// This works because SRWLOCK_INIT is a NULL pointer, so we are also properly
|
||||
// This works because SRWLOCK_INIT is 0 (wrapped in a struct), so we are also properly
|
||||
// initializing an SRWLOCK here.
|
||||
lock: AtomicUsize::new(0),
|
||||
held: UnsafeCell::new(false),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue