Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 174 for acquirem (0.17 sec)

  1. cmd/erasure-server-pool-rebalance.go

    		}
    	}
    	if ok {
    		lock := z.serverPools[0].NewNSLock(minioMetaBucket, rebalMetaName)
    		lkCtx, err := lock.GetLock(ctx, globalOperationTimeout)
    		if err != nil {
    			rebalanceLogIf(ctx, fmt.Errorf("failed to acquire write lock on %s/%s: %w", minioMetaBucket, rebalMetaName, err))
    			return err
    		}
    		defer lock.Unlock(lkCtx)
    
    		ctx = lkCtx.Context()
    
    		noLockOpts := ObjectOptions{NoLock: true}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    	return "", nil
    }
    
    // exclusiveWrite attempts to create filename exclusively, and if successful,
    // writes content to the resulting file handle.
    //
    // It returns a boolean indicating whether the exclusive handle was acquired,
    // and an error indicating whether the operation succeeded.
    // If the file already exists, exclusiveWrite returns (false, nil).
    func exclusiveWrite(filename string, content []byte) (_ bool, rerr error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Striped64.java

      Striped64() {}
    
      /** CASes the base field. */
      final boolean casBase(long cmp, long val) {
        return UNSAFE.compareAndSwapLong(this, baseOffset, cmp, val);
      }
    
      /** CASes the busy field from 0 to 1 to acquire lock. */
      final boolean casBusy() {
        return UNSAFE.compareAndSwapInt(this, busyOffset, 0, 1);
      }
    
      /**
       * Computes the function of current and new value. Subclasses should open-code this update
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. src/runtime/os_netbsd.go

    	var deadline int64
    	if ns >= 0 {
    		deadline = nanotime() + ns
    	}
    
    	for {
    		v := atomic.Load(&gp.m.waitsemacount)
    		if v > 0 {
    			if atomic.Cas(&gp.m.waitsemacount, v, v-1) {
    				return 0 // semaphore acquired
    			}
    			continue
    		}
    
    		// Sleep until unparked by semawakeup or timeout.
    		var tsp *timespec
    		var ts timespec
    		if ns >= 0 {
    			wait := deadline - nanotime()
    			if wait <= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

            return new BTreePersistentIndexedCache<>(cacheFile, keySerializer, valueSerializer);
        }
    
        /**
         * Called just after the file lock has been acquired.
         */
        private void afterLockAcquire(FileLock fileLock) {
            assert this.fileLock == null;
            this.fileLock = fileLock;
            this.stateAtOpen = fileLock.getState();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  6. src/runtime/tracestack.go

    		gp = mp.curg
    	}
    
    	// Double-check that we own the stack we're about to trace.
    	if debug.traceCheckStackOwnership != 0 && gp != nil {
    		status := readgstatus(gp)
    		// If the scan bit is set, assume we're the ones that acquired it.
    		if status&_Gscan == 0 {
    			// Use the trace status to check this. There are a number of cases
    			// where a running goroutine might be in _Gwaiting, and these cases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/net/cgo_unix.go

    // cancellation (cgo, syscalls). blocking func may still be running after this function finishes.
    // For the duration of the execution of the blocking function, the thread is 'acquired' using [acquireThread],
    // blocking might not be executed when the context gets canceled early.
    func doBlockingWithCtx[T any](ctx context.Context, lookupName string, blocking func() (T, error)) (T, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      // parallel.
      //
      // Conceptually this is a thread pool with one thread per device. It requires
      // less synchronization than a thread pool would for this task, since Execute
      // acquires each thread in order (and so only one Execute will schedule
      // blocking collective operations at a time), and avoids some dynamic
      // allocation/scheduling.
      //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 25 15:21:13 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  9. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

            Versioning versioning = null;
            try {
                if (metadata != null) {
                    try (SyncContext syncContext = syncContextFactory.newInstance(session, true)) {
                        syncContext.acquire(null, Collections.singleton(metadata));
    
                        if (metadata.getPath() != null && Files.exists(metadata.getPath())) {
                            try (InputStream in = Files.newInputStream(metadata.getPath())) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/telemetry/internal/counter/counter.go

    		switch {
    		case !state.locked() && state.havePtr():
    			if !c.state.update(&state, state.incReader()) {
    				continue
    			}
    			// Counter unlocked or counter shared; has an initialized count pointer; acquired shared lock.
    			if c.ptr.count == nil {
    				for !c.state.update(&state, state.addExtra(uint64(n))) {
    					// keep trying - we already took the reader lock
    					state = c.state.load()
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top