Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ForceUnlock (0.18 sec)

  1. internal/lsync/lrwmutex.go

    		}
    	} else {
    		if !lm.isWriteLock {
    			if lm.ref > 0 {
    				lm.ref--
    				unlocked = true
    			}
    		}
    	}
    
    	return unlocked
    }
    
    // ForceUnlock will forcefully clear a write or read lock.
    func (lm *LRWMutex) ForceUnlock() {
    	lm.mu.Lock()
    	defer lm.mu.Unlock()
    
    	lm.ref = 0
    	lm.isWriteLock = false
    }
    
    // DRLocker returns a sync.Locker interface that implements
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
Back to top