Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 760 for synchronize (0.22 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/Synchronizer.java

    // TODO Replace the use of this with synchronized caches from Guava
    @NonNullApi
    public class Synchronizer {
    
        private final Lock lock = new ReentrantLock();
    
        public <T> T synchronize(Supplier<T> factory) {
            lock.lock();
            try {
                return factory.get();
            } finally {
                lock.unlock();
            }
        }
    
        public void synchronize(Runnable operation) {
            lock.lock();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CacheAccessSerializer.java

        final private Synchronizer synchronizer = new Synchronizer();
        final private Cache<K, V> cache;
    
        public CacheAccessSerializer(Cache<K, V> cache) {
            this.cache = cache;
        }
    
        @Override
        public V get(final K key, final Function<? super K, ? extends V> factory) {
            return synchronizer.synchronize(() -> cache.get(key, factory));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. src/runtime/proflabel.go

    	// the acquire in profBuf.read synchronizes with *all* prior
    	// setProfLabel operations, not just the most recent one. This
    	// is important because profBuf.read will observe different
    	// labels set by different setProfLabel operations on
    	// different goroutines, so it needs to synchronize with all
    	// of them (this wouldn't be an issue if we could synchronize
    	// on &getg().labels since we would synchronize with each
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/eviction_manager_test.go

    			_, err = manager.synchronize(diskInfoProvider, activePodsFunc)
    
    			if err != nil {
    				t.Fatalf("Manager should not have an error %v", err)
    			}
    
    			// we should not have disk pressure
    			if manager.IsUnderDiskPressure() {
    				t.Fatalf("Manager should not report disk pressure")
    			}
    
    			// synchronize
    			_, err = manager.synchronize(diskInfoProvider, activePodsFunc)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ScopedFingerprintWriter.kt

    ) : Closeable {
        override fun close() {
            // we synchronize access to all resources used by callbacks
            // in case there was still an event being dispatched at closing time.
            synchronized(writeContext) {
                unsafeWrite(null)
                writeContext.close()
            }
        }
    
        fun write(value: T, trace: PropertyTrace? = null) {
            synchronized(writeContext) {
                withPropertyTrace(trace) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. .github/workflows/docs.yml

    name: docs
    
    on:
      push:
        branches:
          - master
      pull_request:
        types: [opened, labeled, unlabeled, synchronize]
    
    permissions:
      contents: read
    
    env:
      GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
    
    jobs:
      test_docs:
        permissions:
          checks: write # for actions/upload-artifact
        runs-on: ubuntu-latest
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Mar 04 06:13:36 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. .github/workflows/containers.yml

    name: containers
    
    on:
      push:
        branches:
          - master
      pull_request:
        types: [opened, labeled, unlabeled, synchronize]
    
    permissions:
      contents: read
    
    env:
      GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
    
    jobs:
      test_containers:
        permissions:
          checks: write # for actions/upload-artifact
        runs-on: ubuntu-latest
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Mar 23 12:00:11 UTC 2024
    - 911 bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/api/internal/cache/CacheConfigurationsInternal.java

        void finalizeConfiguration(Gradle gradle);
    
        /**
         * Synchronizes the property values of the provided cache configurations with those of this cache configuration
         * by setting the provided configuration's properties to be backed by the properties of this configuration.
         */
        void synchronize(CacheConfigurationsInternal cacheConfigurationsInternal);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 20:02:29 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Queues.java

       *
       * <p>It is imperative that the user manually synchronize on the returned deque when accessing any
       * of the deque's iterators:
       *
       * <pre>{@code
       * Deque<E> deque = Queues.synchronizedDeque(Queues.<E>newArrayDeque());
       * ...
       * deque.add(element);  // Needn't be in synchronized block
       * ...
       * synchronized (deque) {  // Must synchronize on deque!
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. .github/workflows/test-redistribute.yml

    name: Test Redistribute
    
    on:
      push:
        branches:
          - master
      pull_request:
        types:
          - opened
          - synchronize
    
    jobs:
      test-redistribute:
        runs-on: ubuntu-latest
        strategy:
          matrix:
            package:
              - fastapi
              - fastapi-slim
        steps:
          - name: Dump GitHub context
            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue May 07 18:31:27 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top