pub unsafe fn manual_try_lock(&self) -> Result<&mut T, c_int> {
        self.lock
            .compare_exchange(UNLOCKED, LOCKED, SeqCst, SeqCst)
            .map(|_| &mut *self.content.get())
    }
/// Tries to lock the mutex, fails if it's already locked. Manual means
/// it's up to you to unlock it after mutex. Returns the last atomic value
/// on failure. You should probably not worry about this, it's used for
/// internal optimizations.
Tries to lock the mutex, fails if it's already locked. Manual means
it's up to you to unlock it after mutex. Returns the last atomic value
on failure. You should probably not worry about this, it's used for
internal optimizations.
Tries to lock the mutex fails if it ' s already locked . Manual means it ' s up to you to unlock it after mutex . Returns the last atomic value on failure . You should probably not worry about this it ' s used for internal optimizations .
pub unsafe fn manual_try_lock(&self) -> Result<&mut T, c_int> {
        self.lock
            .compare_exchange(UNLOCKED, LOCKED, SeqCst, SeqCst)
            .map(|_| &mut *self.content.get())
    }
pub unsafe fn manual_try_lock ( & self ) -> Result < & mut T , c_int > { self . lock . compare_exchange ( UNLOCKED , LOCKED , SeqCst , SeqCst ) . map ( | _ | & mut * self . content . get ( ) ) }
Tries to lock the mutex, fails if it's already locked.
Tries to lock the mutex fails if it ' s already locked .
&self
&self