Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,729 for thread1 (0.26 sec)

  1. guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

        thread1.callAndAssertReturns(enter());
        thread2.callAndAssertBlocks(enter());
        thread1.callAndAssertReturns(leave());
        thread2.assertPriorCallReturns(enter());
      }
    
      public final void testTryEnter() throws Exception {
        thread1.callAndAssertReturns(true, tryEnter());
        thread2.callAndAssertReturns(false, tryEnter());
        thread1.callAndAssertReturns(true, tryEnter());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

        thread1.callAndAssertReturns(enter());
        thread2.callAndAssertBlocks(enter());
        thread1.callAndAssertReturns(leave());
        thread2.assertPriorCallReturns(enter());
      }
    
      public final void testTryEnter() throws Exception {
        thread1.callAndAssertReturns(true, tryEnter());
        thread2.callAndAssertReturns(false, tryEnter());
        thread1.callAndAssertReturns(true, tryEnter());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/cgo/internal/testcarchive/testdata/main4.c

    		die("sigaction");
    	}
    }
    
    // Test raising SIGIO on a C thread with an alternate signal stack
    // when there is a Go signal handler for SIGIO.
    static void* thread1(void* arg __attribute__ ((unused))) {
    	stack_t ss;
    	int i;
    	stack_t nss;
    	struct timespec ts;
    
    	// Set up an alternate signal stack for this thread.
    	memset(&ss, 0, sizeof ss);
    	ss.ss_sp = malloc(CSIGSTKSZ);
    	if (ss.ss_sp == NULL) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top