Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for tryLock (0.22 sec)

  1. subprojects/composite-builds/src/test/groovy/org/gradle/composite/internal/DefaultIncludedBuildTaskGraphParallelTest.groovy

            _ * project.services >> projectServices
            _ * project.pluginManager >> Stub(PluginManagerInternal)
            def lock = Stub(ResourceLock)
            _ * projectState.taskExecutionLock >> lock
            _ * lock.tryLock() >> true
            return task
        }
    
        private BuildWorkGraphController buildWorkGraphController(String displayName, BuildServices services) {
            def builder = Mock(BuildLifecycleController.WorkGraphBuilder)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. internal/grid/muxclient.go

    		gridLogIf(m.ctx, err)
    		m.closeLocked()
    		return false
    	}
    }
    
    func (m *muxClient) close() {
    	if debugPrint {
    		fmt.Println("closing outgoing mux", m.MuxID)
    	}
    	if !m.respMu.TryLock() {
    		// Cancel before locking - will unblock any pending sends.
    		if m.cancelFn != nil {
    			m.cancelFn(context.Canceled)
    		}
    		// Wait for senders to release.
    		m.respMu.Lock()
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        assertTrue(signaledBeforeTimeout);
        assertTimeNotPassed(stopwatch, LONG_DELAY_MS);
        assertInterrupted();
      }
    
      // Lock.tryLock() tests
      public void testTryLockTimeoutExceeded() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        Lock lock = new ReentrantLock();
        Thread lockThread = acquireFor(lock, 5, SECONDS);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 16:06:39 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/LocalCache.java

          }
        }
    
        // reference queues, for garbage collection cleanup
    
        /** Cleanup collected entries when the lock is available. */
        void tryDrainReferenceQueues() {
          if (tryLock()) {
            try {
              drainReferenceQueues();
            } finally {
              unlock();
            }
          }
        }
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MapMakerInternalMap.java

        }
    
        // reference queues, for garbage collection cleanup
    
        /** Cleanup collected entries when the lock is available. */
        void tryDrainReferenceQueues() {
          if (tryLock()) {
            try {
              maybeDrainReferenceQueues();
            } finally {
              unlock();
            }
          }
        }
    
        @GuardedBy("this")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

          }
        }
    
        // reference queues, for garbage collection cleanup
    
        /** Cleanup collected entries when the lock is available. */
        void tryDrainReferenceQueues() {
          if (tryLock()) {
            try {
              drainReferenceQueues();
            } finally {
              unlock();
            }
          }
        }
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        }
    
        // reference queues, for garbage collection cleanup
    
        /** Cleanup collected entries when the lock is available. */
        void tryDrainReferenceQueues() {
          if (tryLock()) {
            try {
              maybeDrainReferenceQueues();
            } finally {
              unlock();
            }
          }
        }
    
        @GuardedBy("this")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_set_control_test.go

    }
    
    func (rt *requestTracker) trackParallelRequests() {
    	if !rt.shouldTrackParallelRequests {
    		// do not track parallel requests unless specifically enabled
    		return
    	}
    	if rt.parallelLock.TryLock() {
    		// lock acquired: we are the only or the first concurrent request
    		// initialize the next set of parallel requests
    		rt.parallelRequests = 1
    	} else {
    		// lock is held by other requests
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_mipsx.s

    TEXT ·Oruintptr(SB), NOSPLIT, $0-12
    	JMP	·Or32(SB)
    
    TEXT ·spinLock(SB),NOSPLIT,$0-4
    	MOVW	state+0(FP), R1
    	MOVW	$1, R2
    	SYNC
    try_lock:
    	MOVW	R2, R3
    check_again:
    	LL	(R1), R4
    	BNE	R4, check_again
    	SC	R3, (R1)
    	BEQ	R3, try_lock
    	SYNC
    	RET
    
    TEXT ·spinUnlock(SB),NOSPLIT,$0-4
    	MOVW	state+0(FP), R1
    	SYNC
    	MOVW	R0, (R1)
    	SYNC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Mutex).Lock", Method, 0},
    		{"(*Mutex).TryLock", Method, 18},
    		{"(*Mutex).Unlock", Method, 0},
    		{"(*Once).Do", Method, 0},
    		{"(*Pool).Get", Method, 3},
    		{"(*Pool).Put", Method, 3},
    		{"(*RWMutex).Lock", Method, 0},
    		{"(*RWMutex).RLock", Method, 0},
    		{"(*RWMutex).RLocker", Method, 0},
    		{"(*RWMutex).RUnlock", Method, 0},
    		{"(*RWMutex).TryLock", Method, 18},
    		{"(*RWMutex).TryRLock", Method, 18},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top