Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 558 for nThreads (0.14 sec)

  1. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/lazy/LazyTest.groovy

            total.get() == 123 * concurrency * 2
        }
    
        def "atomic lazy can handle concurrent threads"() {
            def mutableValueSource = new AtomicInteger()
            Lazy<Integer> lazy = Lazy.atomic().of(mutableValueSource::incrementAndGet)
    
            when: 'multiple threads access a lazy built from a supplier that can return different values'
            int concurrency = 20
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:22:02 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/stackswitch.go

    	gogc := debug.SetGCPercent(100)
    	debug.SetGCPercent(gogc)
    }
    
    // Regression test for https://go.dev/issue/62440. It should be possible for C
    // threads to call into Go from different stacks without crashing due to g0
    // stack bounds checks.
    //
    // N.B. This is only OK for threads created in C. Threads with Go frames up the
    // stack must not change the stack out from under us.
    func StackSwitchCallback() {
    	C.callStackSwitchCallbackFromThread()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 15:33:38 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

                threads[i].setDaemon(daemon);
                threads[i].setPriority(threadPriority);
            }
    
            // run
            crawlerContext.setStatus(CrawlerStatus.RUNNING);
            for (int i = 0; i < crawlerContext.numOfThread; i++) {
                threads[i].start();
            }
    
            // join
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/configuration/internal/DefaultDynamicCallContextTrackerTest.groovy

            }
            def threads = [new Thread(work1), new Thread(work2)]
    
            when:
            def failure = null
            threads.forEach { it.uncaughtExceptionHandler = new Thread.UncaughtExceptionHandler() {
                @Override
                void uncaughtException(Thread t, Throwable e) {
                    failure = e
                }
            }}
            threads.forEach { it.start() }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 14 11:11:17 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

            }
        }
    
        /**
         * Waits for all threads to complete. Asserts that the threads complete in a 'short' time. Rethrows any exceptions thrown by test threads.
         */
        void finished() {
            Date timeout = shortTimeout()
            lock.lock()
            try {
                LOG.info("Waiting for test threads to complete.")
                while (!threads.isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  6. tensorflow/cc/training/coordinator.h

      bool AllRunnersStopped();
    
      /// Requests all running threads to stop.
      Status RequestStop();
    
      /// Returns true if its RequestStop() has been called.
      bool ShouldStop();
    
      /// Joins all threads, returns OK or the first reported and unexpected status.
      Status Join();
    
      /// Reports status to the coordinator. This is usually called by threads.
      void ReportStatus(const Status& status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 08:49:52 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

                });
            }
    
            for (Thread th : threads) {
                th.start();
            }
            for (Thread th : threads) {
                th.join();
            }
            assertEquals(num, count.get());
            assertEquals(num, valueSet.size());
    
            Set<String> valueSet2 = Collections.synchronizedSet(new HashSet<>());
            threads = new Thread[threadNum];
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            failure.assertHasCause("Invalid number of threads '-1'.  Number should not be negative.")
            // pmdMain and pmdTest
            failure.assertHasFailures(2)
        }
    
        def "gets reasonable message when number of threads is negative from task"() {
            goodCode()
            buildFile << """
                pmdMain {
                    threads = -1
                }
            """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorNestingIntegrationTest.groovy

                        def threadGroup = Thread.currentThread().threadGroup
                        def threads = new Thread[threadGroup.activeCount()]
                        threadGroup.enumerate(threads)
                        return threads.findAll { it?.name?.startsWith("${WorkerExecutionQueueFactory.QUEUE_DISPLAY_NAME}") }
                    }
                }
    
                task runInWorker(type: NestingWorkerTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. .github/workflows/lock.yml

    name: 'Lock Threads'
    
    on:
      schedule:
        - cron: '0 0 * * *'
      workflow_dispatch:
    
    permissions:
      issues: write
    
    concurrency:
      group: lock
    
    jobs:
      action:
        runs-on: ubuntu-latest
        steps:
          - uses: dessant/lock-threads@v3
            with:
              github-token: ${{ github.token }}
              issue-inactive-days: '365'
              exclude-any-issue-labels: 'do-not-close'
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 30 03:27:43 UTC 2022
    - 447 bytes
    - Viewed (0)
Back to top