Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 166 for acquirem (1.14 sec)

  1. platforms/software/resources-sftp/src/test/groovy/org/gradle/internal/resource/transport/sftp/SftpClientFactoryTest.groovy

        SftpClientCreator sftpClientCreator = Mock(SftpClientCreator)
    
        def setup() {
            sftpClientFactory.sftpClientCreator = sftpClientCreator
        }
    
        def "Can acquire and release single client"() {
            def mockSftpClient = Mock(LockableSftpClient)
    
            given:
            URI uri = new URI('http://localhost:22/repo')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. android/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
    - 38.6K bytes
    - Viewed (0)
  3. src/testing/benchmark.go

    type PB struct {
    	globalN *atomic.Uint64 // shared between all worker goroutines iteration counter
    	grain   uint64         // acquire that many iterations from globalN at once
    	cache   uint64         // local cache of acquired iterations
    	bN      uint64         // total number of iterations to execute (b.N)
    }
    
    // Next reports whether there are more iterations to execute.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/EventListener.kt

        call: Call,
        inetSocketAddress: InetSocketAddress,
        proxy: Proxy,
        protocol: Protocol?,
        ioe: IOException,
      ) {
      }
    
      /**
       * Invoked after a connection has been acquired for the `call`.
       *
       * This can be invoked more than 1 time for a single [Call]. For example, if the response
       * to the [Call.request] is a redirect to a different address.
       */
      open fun connectionAcquired(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. src/runtime/sema.go

    			// the current G on the local runq instead of the global one.
    			// We only do this in the starving regime (handoff=true), as in
    			// the non-starving case it is possible for a different waiter
    			// to acquire the semaphore while we are yielding/scheduling,
    			// and this would be wasteful. We wait instead to enter starving
    			// regime, and then we start to do direct handoffs of ticket and
    			// P.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy

            def lock = createLock(Exclusive)
            lock.close()
    
            when:
            lock.updateFile({} as Runnable)
    
            then:
            thrown(IllegalStateException)
        }
    
        def "can acquire lock on partially written lock file"() {
            given:
            partiallyWritten()
    
            when:
            def lock = createLock(mode)
    
            then:
            !lock.unlockedCleanly
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultFinalizedExecutionPlan.java

            if (!tryLockProjectFor(node, resources)) {
                LOGGER.debug("Cannot acquire project lock for node {}", node);
                return false;
            } else if (!tryLockSharedResourceFor(node, resources)) {
                LOGGER.debug("Cannot acquire shared resource lock for node {}", node);
                return false;
            }
            return true;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 28 21:49:39 UTC 2022
    - 28.1K bytes
    - Viewed (0)
  8. pkg/controller/volume/attachdetach/cache/actual_state_of_world.go

    			"volumeName", volumeName)
    	}
    	return time.Since(nodeObj.detachRequestedTime), nil
    }
    
    // Get the volume and node object from actual state of world
    // This is an internal function and caller should acquire and release the lock
    //
    // Note that this returns disconnected objects, so if you change the volume object you must set it back with
    // `asw.attachedVolumes[volumeName]=volumeObj`.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    	acc.numaOrSocketsFirst.takeFullSecondLevel()
    	if acc.isSatisfied() {
    		return acc.result, nil
    	}
    
    	// 2. Acquire whole cores, if available and the container requires at least
    	//    a core's-worth of CPUs.
    	acc.takeFullCores()
    	if acc.isSatisfied() {
    		return acc.result, nil
    	}
    
    	// 3. Acquire single threads, preferring to fill partially-allocated cores
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:56:21 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/local/model/LocalComponentGraphResolveStateFactory.java

            }
        }
    
        /**
         * A {@link ConfigurationMetadataFactory} which uses a {@link ConfigurationsProvider} as its data source.
         *
         * TODO: This class should acquire a project lock before accessing the configurations provider.
         */
        private static class ConfigurationsProviderMetadataFactory implements ConfigurationMetadataFactory {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:21:17 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top