Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for Synchronizer (0.21 sec)

  1. android/guava/src/com/google/common/collect/Tables.java

       * ...
       * Map<C, V> row = table.row(rowKey);  // Needn't be in synchronized block
       * ...
       * synchronized (table) {  // Synchronizing on table, not row!
       *   Iterator<Entry<C, V>> i = row.entrySet().iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
       *     foo(i.next());
       *   }
       * }
       * }</pre>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonClientsManager.java

            WorkerDaemonClient client = workerDaemonStarter.startDaemon(forkOptions);
            synchronized (lock) {
                allClients.add(client);
            }
            return client;
        }
    
        public void release(WorkerDaemonClient client) {
            synchronized (lock) {
                if (!client.isFailed()) {
                    idleClients.add(client);
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:54:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationLogger.java

        public synchronized static void init(WarningMode warningMode, BuildOperationProgressEventEmitter buildOperationProgressEventEmitter, Problems problemsService, ProblemStream problemStream) {
            DEPRECATED_FEATURE_HANDLER.init(warningMode, buildOperationProgressEventEmitter, problemsService, problemStream);
        }
    
        public synchronized static void reset() {
            DEPRECATED_FEATURE_HANDLER.reset();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestWorker.java

        private TestClassProcessor processor;
        private TestResultProcessor resultProcessor;
    
        /**
         * Note that the state object is not synchronized and not thread-safe.  Any modifications to the
         * the state should ONLY be made inside the main thread or inside a command passed to the run queue
         * (which will execute on the main thread).
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DefaultDaemonConnectionTest.groovy

            void queueIncoming(Message message) {
                synchronized (lock) {
                    receiveQueue << message
                    lock.notifyAll()
                }
            }
    
            void queueBroken(Throwable failure = new RuntimeException()) {
                queueIncoming(new Failure(failure))
            }
    
            Message receive() {
                synchronized (lock) {
                    while (receiveQueue.empty) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformReplacer.java

                this.originalPath = originalPath;
                this.transformedJarPath = transformedJarPath;
            }
    
            @Override
            @Nullable
            public synchronized byte[] loadTransformedClass(String className) throws IOException {
                JarFile jarFile = getJarFileLocked();
                // From this point it is safe to load the bytes even if somebody attempts to close the replacer.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java

                this.pluginDeclarations = new LinkedHashSet<>();
                this.pluginIssues = new HashMap<>();
                this.mojoIssues = new HashMap<>();
            }
    
            private synchronized void reportPluginIssue(
                    IssueLocality issueLocality, String pluginDeclaration, String issue) {
                if (pluginDeclaration != null) {
                    pluginDeclarations.add(pluginDeclaration);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 23 12:25:04 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  8. src/runtime/trace.go

    	// We ensure this is safe by stopping the world, which acts a global barrier on almost
    	// every M, and explicitly synchronize with any other Ms that could be running concurrently
    	// with us. Today, there are only two such cases:
    	// - sysmon, which we synchronized with by acquiring sysmonlock.
    	// - goroutines exiting syscalls, which we synchronize with via trace.exitingSyscall.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandler.java

                if (name.startsWith(scriptSource.getClassName())) {
                    // Synchronized to avoid multiple threads attempting to define the same class on a lookup miss
                    synchronized (this) {
                        Class<?> cl = findLoadedClass(name);
                        if (cl == null) {
                            cl = findClass(name);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

            toArrayCalled = true;
            return super.toArray(a);
          }
        }
    
        // Test that toArray() is used to make a defensive copy in copyOf(), so concurrently modified
        // synchronized collections can be safely copied.
        TestArrayList<String> toCopy = new TestArrayList<>();
        ImmutableSortedMultiset<String> unused =
            ImmutableSortedMultiset.copyOf(Ordering.natural(), toCopy);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top