- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 748 for Synchronizer (0.3 sec)
-
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) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/Synchronizer.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.internal.work; import org.gradle.internal.Factory; public interface Synchronizer { /** * Runs the given action while holding the associated resource lock, blocking until the lock can be acquired. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.4K bytes - Viewed (0) -
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) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rocache/ReadOnlyDependencyCacheWithinContainerTest.groovy
[core, utils] } @Override def setup() { synchronizer = new BlockingHttpServer() synchronizer.hostAlias = "host.testcontainers.internal" synchronizer.start() GradleInContainer.exposeHostPort(synchronizer.port) } @Override def cleanup() { synchronizer.stop() } @Override protected void checkIncubationMessage() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 6.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/model/StateTransitionController.java
private final Synchronizer synchronizer; // This structure is immutable, and this field is mutated only by the thread that owns the lock private volatile CurrentState<T> state; public StateTransitionController(DisplayName displayName, T initialState, Synchronizer synchronizer) { this.displayName = displayName; this.synchronizer = synchronizer;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 03 03:31:44 UTC 2023 - 20.9K bytes - Viewed (0) -
testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.7K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/work/TestWorkerLeaseService.groovy
action.run() } @Override void runAsUnmanagedWorkerThread(Runnable action) { action.run() } @Override Synchronizer newResource() { return new Synchronizer() { @Override void withLock(Runnable action) { action.run() } @Override <T> T withLock(Factory<T> action) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
executionList.execute(); } return result; } /** * Following the contract of {@link AbstractQueuedSynchronizer} we create a private subclass to * hold the synchronizer. This synchronizer is used to implement the blocking and waiting calls * as well as to handle state changes in a thread-safe manner. The current state of the future
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 09 15:17:25 UTC 2018 - 13.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
executionList.execute(); } return result; } /** * Following the contract of {@link AbstractQueuedSynchronizer} we create a private subclass to * hold the synchronizer. This synchronizer is used to implement the blocking and waiting calls * as well as to handle state changes in a thread-safe manner. The current state of the future
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 06 12:56:11 UTC 2023 - 13.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultSynchronizer.java
* limitations under the License. */ package org.gradle.internal.work; import org.gradle.internal.Factory; import org.gradle.internal.UncheckedException; class DefaultSynchronizer implements Synchronizer { private final WorkerLeaseService workerLeaseService; private Thread owner; public DefaultSynchronizer(WorkerLeaseService workerLeaseService) { this.workerLeaseService = workerLeaseService; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 2.7K bytes - Viewed (0)