Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 923 for held (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/CacheBuilder.java

         * cross-process access.
         */
        CacheBuilder withInitializer(Consumer<? super PersistentCache> initializer);
    
        /**
         * Specifies an action to execute when the cache needs to be cleaned up. An exclusive lock is held while the cleanup is executing, to prevent cross-process access.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccess.java

    import static org.gradle.cache.FileLockManager.LockMode.Shared;
    
    /**
     * A {@link CrossProcessCacheAccess} implementation used when a cache is opened with a shared lock that is held until the cache is closed. The contract for {@link CrossProcessCacheAccess} requires an
     * exclusive lock be held, so this implementation simply throws 'not supported' exceptions for these methods.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. src/sync/rwmutex.go

    // A RWMutex is a reader/writer mutual exclusion lock.
    // The lock can be held by an arbitrary number of readers or a single writer.
    // The zero value for a RWMutex is an unlocked mutex.
    //
    // A RWMutex must not be copied after first use.
    //
    // If any goroutine calls [RWMutex.Lock] while the lock is already held by
    // one or more readers, concurrent calls to [RWMutex.RLock] will block until
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top