Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lockContext (0.23 sec)

  1. cmd/shared-lock.go

    }
    
    func (ld sharedLock) GetLock(ctx context.Context) (context.Context, context.CancelFunc) {
    	l := <-ld.lockContext
    	return mergeContext(l.Context(), ctx)
    }
    
    func newSharedLock(ctx context.Context, objAPI ObjectLayer, lockName string) *sharedLock {
    	l := &sharedLock{
    		lockContext: make(chan LockContext),
    	}
    	go l.backgroundRoutine(ctx, objAPI, lockName)
    
    	return l
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 13 09:26:38 GMT 2023
    - 2.3K bytes
    - Viewed (0)
Back to top