Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,652 for held (0.04 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/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)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileAccess.java

         * @throws FileIntegrityViolationException If the integrity of the file cannot be guaranteed (i.e. {@link #writeFile(Runnable)} has never been called)
         * @throws InsufficientLockModeException If the held lock is not at least a shared lock (e.g. LockMode.NONE)
         */
        <T> T readFile(Callable<? extends T> action) throws LockTimeoutException, FileIntegrityViolationException, InsufficientLockModeException;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. src/runtime/mklockrank.go

    // the syntax.
    //
    // "a < b" means a must be acquired before b if both are held
    // (or, if b is held, a cannot be acquired).
    //
    // "NONE < a" means no locks may be held when a is acquired.
    //
    // If a lock is not given a rank, then it is assumed to be a leaf
    // lock, which means no other lock can be acquired while it is held.
    // Therefore, leaf locks do not need to be given an explicit rank.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLockManager.java

    import java.util.function.Consumer;
    
    @ServiceScope(Scope.Global.class)
    public interface FileLockManager {
        /**
         * Creates a lock for the given file with the given mode. Acquires a lock with the given mode, which is held until the lock is
         * released by calling {@link FileLock#close()}. This method blocks until the lock can be acquired.
         *
         * @param target The file to be locked.
         * @param options The lock options.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.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 Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  8. src/runtime/rwmutex.go

    //
    // Semantic ranking is represented by acquiring readRank during read lock and
    // writeRank during write lock.
    //
    // wLock is held for the duration of a write lock, so it uses writeRank
    // directly, both for semantic and internal ranking. rLock is only held
    // temporarily inside the rlock/lock methods, so it uses readRankInternal to
    // represent internal ranking. Semantic ranking is represented by a separate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerLeaseService.java

        /**
         * Runs a given {@link Factory} while the specified locks are being held, releasing
         * the locks upon completion.  Blocks until the specified locks can be obtained.
         */
        <T> T withLocks(Collection<? extends ResourceLock> locks, Factory<T> factory);
    
        /**
         * Runs a given {@link Runnable} while the specified locks are being held, releasing
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/sync/cond.go

    // Cond implements a condition variable, a rendezvous point
    // for goroutines waiting for or announcing the occurrence
    // of an event.
    //
    // Each Cond has an associated Locker L (often a [*Mutex] or [*RWMutex]),
    // which must be held when changing the condition and
    // when calling the [Cond.Wait] method.
    //
    // A Cond must not be copied after first use.
    //
    // In the terminology of [the Go memory model], Cond arranges that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top