Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/namespace-lock_test.go

    		// not be required but makes reproduction much easier.
    		nsLk.lockMapMutex.Lock()
    
    		// lk3 blocks.
    		lk3ch := make(chan bool)
    		go func() {
    			lk3ch <- nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 0)
    		}()
    
    		// lk4, blocks.
    		lk4ch := make(chan bool)
    		go func() {
    			lk4ch <- nsLk.lock(ctx, "volume", "path", "source", "opsID", false, 0)
    		}()
    		runtime.Gosched()
    
    		// unlock the manual lock
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 3.1K bytes
    - Viewed (0)
Back to top