Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,935 for thread1 (0.22 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationQueueTest.groovy

        }
    
        def "cleanup"() {
            lease?.leaseFinish()
            workerRegistry.stop()
        }
    
        def "executes all #runs operations in #threads threads"() {
            given:
            setupQueue(threads)
            def success = Mock(TestBuildOperation)
    
            when:
            runs.times { operationQueue.add(success) }
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

            try {
                TestThread thread = new TestThread(this, lock, cl)
                thread.start()
                return thread
            } finally {
                lock.unlock()
            }
        }
    
        /**
         * Starts a thread which executes the given action/closure. Does not wait for the thread to complete.
         *
         * @return A handle to the test thread.
         */
        TestParticipant start(Runnable cl) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  3. 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)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGStaticLoggingIntegrationTest.groovy

                threads.add(thread);
            }
            for(Thread thread: threads) {
                thread.join();
            }
        }
    }
    """
    
            when:
            succeeds("test")
    
            then:
            def testResult = new JUnitXmlTestExecutionResult(testDirectory)
            def classResult = testResult.testClass("OkTest")
    
            5.times { n ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. 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)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitLoggingOutputCaptureIntegrationTest.groovy

                    @Test
                    public void ok() throws Exception {
                        // logging from multiple threads
                        List<Thread> threads  = new ArrayList<Thread>();
                        for (int i = 0; i < 5; i++) {
                            Thread thread = new Thread("thread " + i) {
                                @Override
                                public void run() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/TestLocking.java

                } else {
                    t.url = args[ai];
                }
            }
    
            Thread[] threads = new Thread[t.numThreads];
            int ti;
    
            for (ti = 0; ti < t.numThreads; ti++) {
                threads[ti] = new Thread(t);
                System.out.print(threads[ti].getName());
                threads[ti].start();
            }
    
            while (t.numComplete < t.numThreads) {
                long delay;
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  8. src/runtime/cgo/callbacks.go

    //go:linkname _cgo_thread_start _cgo_thread_start
    var x_cgo_thread_start byte
    var _cgo_thread_start = &x_cgo_thread_start
    
    // Creates a new system thread without updating any Go state.
    //
    // This method is invoked during shared library loading to create a new OS
    // thread to perform the runtime initialization. This method is similar to
    // _cgo_sys_thread_start except that it doesn't update any Go state.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

            final Thread[] threads = new Thread[crawlerContext.getNumOfThread()];
            for (int i = 0; i < crawlerContext.getNumOfThread(); i++) {
                final CrawlerThread crawlerThread = crawlerContainer.getComponent("crawlerThread");
                crawlerThread.setCrawlerContext(crawlerContext);
                crawlerThread.setClientFactory(clientFactory);
                threads[i] =
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ExecutorFactory.java

         * @param displayName The display name for this executor. Used for thread names, logging and error message.
         * @param corePoolSize The number of threads to keep in the pool
         * @param maximumPoolSize The maximum number of threads allowed
         * @param keepAliveTime  when the number of threads is greater than
         *        the core, this is the maximum time that excess idle threads
         *        will wait for new tasks before terminating.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top