Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeLock (0.15 sec)

  1. internal/dsync/drwmutex.go

    		// Check if minimally a single bool is set in the writeLocks array
    		lockFound := false
    		for _, uid := range dm.writeLocks {
    			if isLocked(uid) {
    				lockFound = true
    				break
    			}
    		}
    		if !lockFound {
    			panic("Trying to Unlock() while no Lock() is active")
    		}
    
    		// Copy write locks to stack array
    		copy(locks, dm.writeLocks)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
Back to top