Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for lock1 (0.12 sec)

  1. src/runtime/pprof/pprof_test.go

    	// as this is blocked before the unlock happens, it's okay.
    	mu.Lock()
    }
    
    func blockMutexN(t *testing.T, n int, d time.Duration) {
    	var wg sync.WaitGroup
    	var mu sync.Mutex
    	mu.Lock()
    	go func() {
    		awaitBlockedGoroutine(t, "sync.Mutex.Lock", "blockMutex", n)
    		time.Sleep(d)
    		mu.Unlock()
    	}()
    	// Note: Unlock releases mu before recording the mutex event,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle_test.go

    	"github.com/google/uuid"
    	"github.com/minio/minio/internal/bucket/object/lock"
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    func TestParseAndValidateLifecycleConfig(t *testing.T) {
    	testCases := []struct {
    		inputConfig           string
    		expectedParsingErr    error
    		expectedValidationErr error
    		lr                    lock.Retention
    	}{
    		{ // Valid lifecycle config
    			inputConfig: `<LifecycleConfiguration>
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. src/crypto/tls/common.go

    		(bytes.HasPrefix(c.SessionTicketKey[:], deprecatedSessionTicketKey) || len(c.sessionTicketKeys) > 0) {
    		return
    	}
    
    	// We need to write some data, so get an exclusive lock and re-check any conditions.
    	c.mutex.RUnlock()
    	defer c.mutex.RLock()
    	c.mutex.Lock()
    	defer c.mutex.Unlock()
    	if c.SessionTicketKey == [32]byte{} {
    		if _, err := io.ReadFull(c.rand(), c.SessionTicketKey[:]); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    }
    
    // sets globalObjectAPI to `nil`.
    func resetGlobalObjectAPI() {
    	globalObjLayerMutex.Lock()
    	globalObjectAPI = nil
    	globalObjLayerMutex.Unlock()
    }
    
    // reset the value of the Global server config.
    // set it to `nil`.
    func resetGlobalConfig() {
    	// hold the mutex lock before a new config is assigned.
    	globalServerConfigMu.Lock()
    	// Save the loaded config globally.
    	globalServerConfig = nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  5. cmd/api-errors.go

    	ErrObjectLockConfigurationNotFound: {
    		Code:           "ObjectLockConfigurationNotFoundError",
    		Description:    "Object Lock configuration does not exist for this bucket",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrObjectLockConfigurationNotAllowed: {
    		Code:           "InvalidBucketState",
    		Description:    "Object Lock configuration cannot be enabled on existing buckets",
    		HTTPStatusCode: http.StatusConflict,
    	},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  6. pkg/controller/volume/persistentvolume/pv_controller.go

    // standalone goroutine and already has all necessary locks.
    func (ctrl *PersistentVolumeController) recycleVolumeOperation(ctx context.Context, volume *v1.PersistentVolume) {
    	logger := klog.FromContext(ctx)
    	logger.V(4).Info("RecycleVolumeOperation started", "volumeName", volume.Name)
    
    	// This method may have been waiting for a volume lock for some time.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
  7. pkg/controller/replicaset/replica_set_test.go

    		}
    	}
    }
    
    func TestSlowStartBatch(t *testing.T) {
    	fakeErr := fmt.Errorf("fake error")
    	callCnt := 0
    	callLimit := 0
    	var lock sync.Mutex
    	fn := func() error {
    		lock.Lock()
    		defer lock.Unlock()
    		callCnt++
    		if callCnt > callLimit {
    			return fakeErr
    		}
    		return nil
    	}
    
    	tests := []struct {
    		name              string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  8. src/reflect/type.go

    		for _, t := range ts.([]*abi.Type) {
    			if haveIdenticalUnderlyingType(&ft.Type, t, true) {
    				return toRType(t)
    			}
    		}
    	}
    
    	// Not in cache, lock and retry.
    	funcLookupCache.Lock()
    	defer funcLookupCache.Unlock()
    	if ts, ok := funcLookupCache.m.Load(hash); ok {
    		for _, t := range ts.([]*abi.Type) {
    			if haveIdenticalUnderlyingType(&ft.Type, t, true) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  9. src/runtime/traceback.go

    	// If the goroutine is in cgo, and we have a cgo traceback, print that.
    	if iscgo && gp.m != nil && gp.m.ncgo > 0 && gp.syscallsp != 0 && gp.m.cgoCallers != nil && gp.m.cgoCallers[0] != 0 {
    		// Lock cgoCallers so that a signal handler won't
    		// change it, copy the array, reset it, unlock it.
    		// We are locked to the thread and are not running
    		// concurrently with a signal handler.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  10. cmd/kube-controller-manager/app/options/options_test.go

    	"--kubeconfig=/kubeconfig",
    	"--large-cluster-size-threshold=100",
    	"--leader-elect=false",
    	"--leader-elect-lease-duration=30s",
    	"--leader-elect-renew-deadline=15s",
    	"--leader-elect-resource-lock=configmap",
    	"--leader-elect-retry-period=5s",
    	"--legacy-service-account-token-clean-up-period=8760h",
    	"--master=192.168.4.20",
    	"--max-endpoints-per-slice=200",
    	"--min-resync-period=8h",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top