pub fn try_enter(&'static self) -> Option<EnteredCritical<'static>> {
        self.init_once();
        // Safety: returns non-zero if we are in critical section when call returns.
        // Naturally thread-safe.
        unsafe {
            match try_enter_cs(self.lpCriticalSection()) {
                0 => None,
                _ => Some(EnteredCritical::new(&self.inner)),
            }
        }
    }
/// Tries to enter the critical section without blocking. This will
/// not deadlock if the calling thread is already in the Critical
/// Section.
Tries to enter the critical section without blocking. This will
not deadlock if the calling thread is already in the Critical
Section.
Tries to enter the critical section without blocking . This will not deadlock if the calling thread is already in the Critical Section .
pub fn try_enter(&'static self) -> Option<EnteredCritical<'static>> {
        self.init_once();
        // Safety: returns non-zero if we are in critical section when call returns.
        // Naturally thread-safe.
        unsafe {
            match try_enter_cs(self.lpCriticalSection()) {
                0 => None,
                _ => Some(EnteredCritical::new(&self.inner)),
            }
        }
    }
pub fn try_enter ( & ' static self ) -> Option < EnteredCritical < ' static > > { self . init_once ( ) ; // Safety: returns non-zero if we are in critical section when call returns. // Naturally thread-safe. unsafe { match try_enter_cs ( self . lpCriticalSection ( ) ) { 0 => None , _ => Some ( EnteredCritical :: new ( & self . inner ) ) , } } }
Tries to enter the critical section without blocking.
Tries to enter the critical section without blocking .
&'static self