/// Lock the global lock, not allowing any other `GLock` to be locked during the locked duration
Lock the global lock, not allowing any other `GLock` to be locked during the locked duration
Lock the global lock not allowing any other ` GLock ` to be locked during the locked duration
pub fn lock(&self) -> GLockGuard<T> {
        let global_guard = LOCK.lock();
        // SAFETY: We took the global lock above,
        // so no other one is allowed to get to this critical section here
        let value = unsafe { &mut *self.inner.get() };
        GLockGuard {
            value,
            _global_guard: global_guard,
        }
    }
pub fn lock ( & self ) -> GLockGuard < T > { let global_guard = LOCK . lock ( ) ; // SAFETY: We took the global lock above, // so no other one is allowed to get to this critical section here let value = unsafe { & mut * self . inner . get ( ) } ; GLockGuard { value , _global_guard : global_guard , } }
Lock the global lock, not allowing any other `GLock` to be locked during the locked duration
Lock the global lock not allowing any other ` GLock ` to be locked during the locked duration
&self