Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 174 for acquirem (0.21 sec)

  1. src/runtime/metrics.go

    // sysStatsAggregate represents system memory stats obtained
    // from the runtime. This set of stats is grouped together because
    // they're all relatively cheap to acquire and generally independent
    // of one another and other runtime memory stats. The fact that they
    // may be acquired at different times, especially with respect to
    // heapStatsAggregate, means there could be some skew, but because of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * evaluate the integral of the function from 7.0 to 10.0.
       *
       * Using integrals guarantees that the effect of a single acquire(3) is equivalent to {
       * acquire(1); acquire(1); acquire(1); }, or { acquire(2); acquire(1); }, etc, since the integral
       * of the function in [7.0, 10.0] is equivalent to the sum of the integrals of [7.0, 8.0], [8.0,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.groovy

                    assert !lockIsHeld(projectLock)
                }
                assert lockIsHeld(taskLease)
                assert lockIsHeld(projectLock)
            }
        }
    
        def "can acquire task execution lease while holding the project lock"() {
            def workerLeaseService = workerLeaseService(false)
            def taskLease = workerLeaseService.getTaskExecutionLock(path("build"), path("project"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  4. pkg/kube/krt/collection.go

    	log *istiolog.Scope
    
    	// recomputeMu blocks a recomputation of I->O.
    	recomputeMu sync.Mutex
    
    	// mu protects all items grouped below.
    	// This is acquired for reads and writes of data.
    	// This can be acquired with recomputeMu held, but only with strict ordering (mu inside recomputeMu)
    	mu              sync.Mutex
    	collectionState multiIndex[I, O]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. src/runtime/HACKING.md

    without an active P. In this case, `go:nowritebarrierrec` is used on
    functions that release the P or may run without a P and
    `go:yeswritebarrierrec` is used when code re-acquires an active P.
    Since these are function-level annotations, code that releases or
    acquires a P may need to be split across two functions.
    
    go:uintptrkeepalive
    -------------------
    
    The //go:uintptrkeepalive directive must be followed by a function declaration.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         * <p>To avoid races between threads doing release and acquire, we transition to the final state
         * in two steps. One thread will successfully CAS from RUNNING to COMPLETING, that thread will
         * then set the result of the computation, and only then transition to COMPLETED, CANCELLED, or
         * INTERRUPTED.
         *
         * <p>We don't use the integer argument passed between acquire methods so we pass around a -1
         * everywhere.
         */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  7. internal/dsync/dsync_test.go

    	stopLockServers()
    	os.Exit(code)
    }
    
    func TestSimpleLock(t *testing.T) {
    	dm := NewDRWMutex(ds, "test")
    
    	dm.Lock(id, source)
    
    	// fmt.Println("Lock acquired, waiting...")
    	time.Sleep(testDrwMutexRefreshCallTimeout)
    
    	dm.Unlock(context.Background())
    }
    
    func TestSimpleLockUnlockMultipleTimes(t *testing.T) {
    	dm := NewDRWMutex(ds, "test")
    
    	dm.Lock(id, source)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 11K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/Monitor.java

      //    places you'll have monitor.enter()/monitor.leave() and other
      //    places you'll have guard.enter()/guard.leave() even though
      //    it's the same lock being acquired underneath. Always using
      //    monitor.enterXXX()/monitor.leave() will make it really clear
      //    which lock is held at any point in the code.
      //
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 18:22:01 UTC 2023
    - 42.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher.go

    	}
    
    	if heartbeatTime.Before(now) {
    		return time.Time{}, false
    	}
    	return heartbeatTime, true
    }
    
    // wasBookmarkAfterRvReceived same as wasBookmarkAfterRvReceivedLocked just acquires a lock
    func (c *cacheWatcher) wasBookmarkAfterRvReceived() bool {
    	c.stateMutex.Lock()
    	defer c.stateMutex.Unlock()
    	return c.wasBookmarkAfterRvReceivedLocked()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 12:22:41 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  10. pkg/scheduler/internal/cache/cache.go

    	}
    	return nil
    }
    
    // Assumes that lock is already acquired.
    func (cache *cacheImpl) updatePod(logger klog.Logger, oldPod, newPod *v1.Pod) error {
    	if err := cache.removePod(logger, oldPod); err != nil {
    		return err
    	}
    	return cache.addPod(logger, newPod, false)
    }
    
    // Assumes that lock is already acquired.
    // Removes a pod from the cached node info. If the node information was already
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 09:56:48 UTC 2023
    - 24.9K bytes
    - Viewed (0)
Back to top