Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,449 for held (0.05 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLeaseRegistry.java

        boolean getAllowsParallelExecution();
    
        /**
         * Releases any project state locks or task execution locks currently held by the current thread and executes the {@link Factory}.
         * Upon completion of the {@link Factory}, if a lock was held at the time the method was called, then it will be reacquired.
         * If no locks were held at the time the method was called, then no attempt will be made to reacquire a lock on completion.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/runtime/lockrank_on.go

    		println("<none>")
    		return
    	}
    
    	for j, held := range gp.m.locksHeld[:gp.m.locksHeldLen] {
    		println(j, ":", held.rank.String(), held.rank, unsafe.Pointer(gp.m.locksHeld[j].lockAddr))
    	}
    }
    
    // acquireLockRankAndM acquires a rank which is not associated with a mutex
    // lock. To maintain the invariant that an M with m.locks==0 does not hold any
    // lock-like resources, it also acquires the M.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/ObjectHolder.java

         * Fetches the value from this cache. A shared or exclusive lock is held while fetching the value, depending on implementation.
         */
        T get();
    
        /**
         * Sets the value for this cache. An exclusive lock is held while setting the value.
         */
        void set(T newValue);
    
        /**
         * Replaces the value for this cache.
         *
         * An exclusive lock is held while the update action is executing.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/IndexedCache.java

         */
        @Override
        void put(K key, V value);
    
        /**
         * Removes a key-value mapping from this cache. A shared lock is held while updating the value.
         *
         * The implementation may do this synchronously or asynchronously. A file lock is held until the value has been removed from the persistent store.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ResourceLockRegistry.java

    public interface ResourceLockRegistry {
        /**
         * Get all of the resource locks held by the current thread.
         */
        Collection<? extends ResourceLock> getResourceLocksByCurrentThread();
    
        /**
         * Returns true if the registry has any locks that are being held by a thread.
         *
         * @return true if any locks in the registry are currently held.
         */
        boolean hasOpenLocks();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/PersistentCache.java

    import org.gradle.internal.serialize.Serializer;
    
    import java.io.Closeable;
    import java.io.File;
    
    /**
     * Represents a directory that can be used for caching.
     *
     * <p>By default, a shared lock is held on this cache by this process, to prevent it being removed or rebuilt by another process
     * while it is in use. You can change this use {@link CacheBuilder#withInitialLockMode(org.gradle.cache.FileLockManager.LockMode)}.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 19 07:59:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/SharedResourceLeaseRegistryTest.groovy

        boolean lockIsHeld(final ResourceLock resourceLock) {
            MutableBoolean held = new MutableBoolean()
            coordinationService.withStateLock(new InternalTransformer<ResourceLockState.Disposition, ResourceLockState>() {
                @Override
                ResourceLockState.Disposition transform(ResourceLockState resourceLockState) {
                    held.set(resourceLock.locked && resourceLock.isLockedByCurrentThread())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLock.java

            super(displayName, coordinationService, owner);
            this.allProjectsLock = allProjectsLock;
        }
    
        @Override
        protected boolean canAcquire() {
            // Either the "all projects" lock is not held, or it is held by this thread
            return !allProjectsLock.isLocked() || allProjectsLock.isLockedByCurrentThread();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/AbstractCrossProcessCacheAccess.java

        /**
         * Opens this cache access instance when the cache is opened. State lock is held while this method is called.
         */
        public abstract void open();
    
        /**
         * Closes this cache access instance when the cache is opened. State lock is held while this method is called.
         */
        @Override
        public abstract void close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

        for (int i = 0; i < length; i++) {
          Object key = new Object();
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
          // held
          chain = segment.newEntry(key, cache.hash(key), chain);
          if (i == 0) {
            head = chain;
          }
        }
      }
    
      @SuppressWarnings("GuardedBy")
      @Benchmark
      int time(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top