Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,453 for thread1 (0.85 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultProjectStateRegistryTest.groovy

                        thread.block()
                        instant.thread1
                    }
                }
                workerThread {
                    thread.blockUntil.start
                    state.applyToMutableState {
                        instant.thread2
                    }
                }
            }
    
            then:
            instant.thread2 > instant.thread1
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/AssignImmutableWorkspaceStepConcurrencyTest.groovy

            Map<Thread, Throwable> exceptions = [:]
            def exceptionHandler = { thread, exception ->
                exceptions.put(thread, exception)
                exception.printStackTrace()
            } as Thread.UncaughtExceptionHandler
    
            when:
            def thread1 = new Thread({
                println "Work 1 started"
                step.execute(work, context)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:46:25 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/threadprof.go

    package main
    
    /*
    #include <stdint.h>
    #include <stdlib.h>
    #include <signal.h>
    #include <pthread.h>
    
    volatile int32_t spinlock;
    
    // Note that this thread is only started if GO_START_SIGPROF_THREAD
    // is set in the environment, which is only done when running the
    // CgoExternalThreadSIGPROF test.
    static void *thread1(void *p) {
    	(void)p;
    	while (spinlock == 0)
    		;
    	pthread_kill(pthread_self(), SIGPROF);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 22:43:54 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.groovy

                start {
                    workerLeaseService.withLocks([projectLock]) {
                        instant.thread1
                        thread.blockUntil.thread2
                        sleep 100
                    }
                }
                start {
                    thread.blockUntil.thread1
                    instant.thread2
                    workerLeaseService.withLocks([projectLock]) {
                        thread2Executed = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

         * there's another race: If the first thread fails with an exception and a second thread
         * immediately fails with the same exception:
         *
         * Thread1: calls setException(), which returns true, context switch before it can CAS
         * seenExceptions to its exception
         *
         * Thread2: calls setException(), which returns false, CASes seenExceptions to its exception,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AggregateFutureState.java

         * there's another race: If the first thread fails with an exception and a second thread
         * immediately fails with the same exception:
         *
         * Thread1: calls setException(), which returns true, context switch before it can CAS
         * seenExceptions to its exception
         *
         * Thread2: calls setException(), which returns false, CASes seenExceptions to its exception,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     * example involving two locks and two threads, deadlock occurs when one thread acquires Lock A, and
     * then Lock B, while another thread acquires Lock B, and then Lock A:
     *
     * <pre>
     * Thread1: acquire(LockA) --X acquire(LockB)
     * Thread2: acquire(LockB) --X acquire(LockA)
     * </pre>
     *
     * <p>Neither thread will progress because each is waiting for the other. In more complex
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     * example involving two locks and two threads, deadlock occurs when one thread acquires Lock A, and
     * then Lock B, while another thread acquires Lock B, and then Lock A:
     *
     * <pre>
     * Thread1: acquire(LockA) --X acquire(LockB)
     * Thread2: acquire(LockB) --X acquire(LockA)
     * </pre>
     *
     * <p>Neither thread will progress because each is waiting for the other. In more complex
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/test.go

    	return 5242;
    }
    
    // issue 5337
    // Verify that we can withstand SIGPROF received on foreign threads
    
    #ifdef WIN32
    void test5337() {}
    #else
    static void *thread1(void *p) {
    	(void)p;
    	pthread_kill(pthread_self(), SIGPROF);
    	return NULL;
    }
    void test5337() {
    	pthread_t tid;
    	pthread_create(&tid, 0, thread1, NULL);
    	pthread_join(tid, 0);
    }
    #endif
    
    // issue 5603
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  10. src/internal/trace/testdata/generators/go122-create-syscall-reuse-thread-id.go

    // in the trace have unique IDs, since the P just stays associated
    // with an eternally dead thread, and it's stolen by some other
    // thread later. But if thread IDs are reused, then the tracer
    // gets confused when trying to advance events on the new thread.
    // The now-dead thread which exited on a GoDestroySyscall still has
    // its P associated and this transfers to the newly-live thread
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top