Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for acquirem (0.79 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

       * cancelled without a call to {@code cancel}, such as by calling {@code
       * setFuture(cancelledFuture)}.
       *
       * <p>Beware of completing a future while holding a lock. Its listeners may do slow work or
       * acquire other locks, risking deadlocks.
       */
      @CanIgnoreReturnValue
      @Override
      public boolean cancel(boolean mayInterruptIfRunning) {
        Object localValue = value;
        boolean rValue = false;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AbstractFuture.java

       * cancelled without a call to {@code cancel}, such as by calling {@code
       * setFuture(cancelledFuture)}.
       *
       * <p>Beware of completing a future while holding a lock. Its listeners may do slow work or
       * acquire other locks, risking deadlocks.
       */
      @CanIgnoreReturnValue
      @Override
      public boolean cancel(boolean mayInterruptIfRunning) {
        Object localValue = value;
        boolean rValue = false;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (1)
  3. pkg/scheduler/internal/queue/scheduling_queue.go

    		p.movePodsToActiveOrBackoffQueue(logger, p.getUnschedulablePodsWithMatchingAffinityTerm(logger, newPod), AssignedPodUpdate, oldPod, newPod)
    	}
    	p.lock.Unlock()
    }
    
    // NOTE: this function assumes a lock has been acquired in the caller.
    // moveAllToActiveOrBackoffQueue moves all pods from unschedulablePods to activeQ or backoffQ.
    // This function adds all pods and then signals the condition variable to ensure that
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  4. cmd/kubelet/app/server.go

    	}
    	done := make(chan struct{})
    	if s.LockFilePath != "" {
    		klog.InfoS("Acquiring file lock", "path", s.LockFilePath)
    		if err := flock.Acquire(s.LockFilePath); err != nil {
    			return fmt.Errorf("unable to acquire file lock on %q: %w", s.LockFilePath, err)
    		}
    		if s.ExitOnLockContention {
    			klog.InfoS("Watching for inotify events", "path", s.LockFilePath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  5. cmd/erasure-object.go

    	if !opts.NoAuditLog {
    		auditObjectErasureSet(ctx, object, &er)
    	}
    
    	var unlockOnDefer bool
    	nsUnlocker := func() {}
    	defer func() {
    		if unlockOnDefer {
    			nsUnlocker()
    		}
    	}()
    
    	// Acquire lock
    	if !opts.NoLock {
    		lock := er.NewNSLock(bucket, object)
    		lkctx, err := lock.GetRLock(ctx, globalOperationTimeout)
    		if err != nil {
    			return nil, err
    		}
    		ctx = lkctx.Context()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// the c.watchCache.RLock held otherwise we are at risk of a deadlock
    	// mainly because c.watchCache.processEvent method won't be able to make progress
    	//
    	// moreover even though the c.waitUntilWatchCacheFreshAndForceAllEvents acquires a lock
    	// it is safe to release the lock after the method finishes because we don't require
    	// any atomicity between the call to the method and further calls that actually get the events.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        }
    
        Value element_shape = adaptor.getOperands()[0];
        Type shape_dtype = getElementTypeOrSelf(element_shape.getType());
        // If the `element_shape` is a scalar, we try to acquire its shape by
        // looking at the first `TensorListSetItemOp` writing to this tensor list.
        // Here we assume that the element_shape won't be changed before calling
        // the first `TensorListSetItemOp`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modload/init.go

    			if err == nil {
    				err = modfetch.WriteGoSum(ctx, keepSums(ctx, loaded, requirements, addBuildListZipSums), mustHaveCompleteRequirements())
    			}
    		}
    	}()
    
    	// Make a best-effort attempt to acquire the side lock, only to exclude
    	// previous versions of the 'go' command from making simultaneous edits.
    	if unlock, err := modfetch.SideLock(ctx); err == nil {
    		defer unlock()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  9. src/net/http/transport.go

    			tooOld := !oldTime.IsZero() && pconn.idleAt.Round(0).Before(oldTime)
    			if tooOld {
    				// Async cleanup. Launch in its own goroutine (as if a
    				// time.AfterFunc called it); it acquires idleMu, which we're
    				// holding, and does a synchronous net.Conn.Close.
    				go pconn.closeConnIfStillIdle()
    			}
    			if pconn.isBroken() || tooOld {
    				// If either persistConn.readLoop has marked the connection
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top