Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 5,554 for acquired (0.28 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

                coordinationService.notifyStateChange()
            }
    
            then:
            1 * listener.execute(lock)
            0 * listener._
        }
    
        def "does not notify listener when lock is acquired and released in single action"() {
            def listener = Mock(Action)
            coordinationService.addLockReleaseListener(listener)
    
            def lock = resourceLock("lock1")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_compile_on_demand_op.cc

        // will retain references, but this is more obviously correct.)
        core::ScopedUnref xla_device_compiler_ref(xla_device_compiler);
        core::ScopedUnref profiler_ref(profiler);
    
        // Locks are acquired again when populating the `ctx` outputs.
        OP_REQUIRES_OK(
            ctx, Run(variable_args, result, xla_device_compiler, executable, ctx));
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. 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)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

              }
              else -> null
            }
          }
    
        // If the call's connection wasn't released, reuse it. We don't call connectionAcquired() here
        // because we already acquired it.
        if (connectionUser.candidateConnection() != null) {
          check(toClose == null)
          return ReusePlan(candidate)
        }
    
        // The call's connection was released.
        toClose?.closeQuietly()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/runtime/traceruntime.go

    //
    //go:nosplit
    func traceAcquireEnabled() traceLocker {
    	// Any time we acquire a traceLocker, we may flush a trace buffer. But
    	// buffer flushes are rare. Record the lock edge even if it doesn't happen
    	// this time.
    	lockRankMayTraceFlush()
    
    	// Prevent preemption.
    	mp := acquirem()
    
    	// Acquire the trace seqlock. This prevents traceAdvance from moving forward
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
Back to top