Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 390 for runNext (0.18 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java

        private final Deque<Runnable> tasks = Queues.newArrayDeque();
    
        @Override
        public void execute(Runnable task) {
          tasks.add(task);
        }
    
        private void runNext() {
          tasks.removeFirst().run();
        }
      }
    
      public void testAsyncReload() throws Exception {
        final AtomicInteger loadCount = new AtomicInteger();
        final AtomicInteger reloadCount = new AtomicInteger();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Aug 05 17:21:46 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

          tasks.add(command);
        }
    
        boolean hasNext() {
          return !tasks.isEmpty();
        }
    
        void runNext() {
          assertTrue("expected at least one task to run", hasNext());
          tasks.remove().run();
        }
    
        void runAll() {
          while (hasNext()) {
            runNext();
          }
        }
      }
    
      private FakeExecutor fakePool;
      private SequentialExecutor e;
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

          tasks.add(command);
        }
    
        boolean hasNext() {
          return !tasks.isEmpty();
        }
    
        void runNext() {
          assertTrue("expected at least one task to run", hasNext());
          tasks.remove().run();
        }
    
        void runAll() {
          while (hasNext()) {
            runNext();
          }
        }
      }
    
      private FakeExecutor fakePool;
      private SequentialExecutor e;
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    func runqget(pp *p) (gp *g, inheritTime bool) {
    	// If there's a runnext, it's the next G to run.
    	next := pp.runnext
    	// If the runnext is non-0 and the CAS fails, it could only have been stolen by another P,
    	// because other Ps can race to set runnext to 0, but only the current P can set it to non-0.
    	// Hence, there's no need to retry this CAS if it fails.
    	if next != 0 && pp.runnext.cas(next, 0) {
    		return next.ptr(), true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  5. src/runtime/sema.go

    		}
    		if handoff && cansemacquire(addr) {
    			s.ticket = 1
    		}
    		readyWithTime(s, 5+skipframes)
    		if s.ticket == 1 && getg().m.locks == 0 {
    			// Direct G handoff
    			// readyWithTime has added the waiter G as runnext in the
    			// current P; we now call the scheduler so that we start running
    			// the waiter G immediately.
    			// Note that waiter inherits our time slice: this is desirable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/runtime/runtime2.go

    	goidcache    uint64
    	goidcacheend uint64
    
    	// Queue of runnable goroutines. Accessed without lock.
    	runqhead uint32
    	runqtail uint32
    	runq     [256]guintptr
    	// runnext, if non-nil, is a runnable G that was ready'd by
    	// the current G and should be run next instead of what's in
    	// runq if there's time remaining in the running G's time
    	// slice. It will inherit the time left in the current time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  7. src/runtime/mgcmark.go

    		if scanBytes+gp.gcAssistBytes >= 0 {
    			// Satisfy this entire assist debt.
    			scanBytes += gp.gcAssistBytes
    			gp.gcAssistBytes = 0
    			// It's important that we *not* put gp in
    			// runnext. Otherwise, it's possible for user
    			// code to exploit the GC worker's high
    			// scheduler priority to get itself always run
    			// before other goroutines and always in the
    			// fresh quantum started by GC.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  8. src/runtime/mgcscavenge.go

    		// Ready the goroutine by injecting it. We use injectglist instead
    		// of ready or goready in order to allow us to run this function
    		// without a P. injectglist also avoids placing the goroutine in
    		// the current P's runnext slot, which is desirable to prevent
    		// the scavenger from interfering with user goroutine scheduling
    		// too much.
    		var list gList
    		list.push(s.g)
    		injectglist(&list)
    	}
    	unlock(&s.lock)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  9. src/runtime/mgc.go

    		// N.B. we intentionally wait on each goroutine individually
    		// rather than starting all in a batch and then waiting once
    		// afterwards. By running one goroutine at a time, we can take
    		// advantage of runnext to bounce back and forth between
    		// workers and this goroutine. In an overloaded application,
    		// this can reduce GC start latency by prioritizing these
    		// goroutines rather than waiting on the end of the run queue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/expressionInfoProvider/FirIdeNormalAnalysisSourceModuleIsUsedAsExpressionTestGenerated.java

      }
    
      @Test
      @TestMetadata("annotatedExpr.kt")
      public void testAnnotatedExpr() {
        runTest("analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/annotatedExpr.kt");
      }
    
      @Test
      @TestMetadata("annotatedExprAnnotation.kt")
      public void testAnnotatedExprAnnotation() {
        runTest("analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/annotatedExprAnnotation.kt");
      }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 08 19:07:43 UTC 2024
    - 76.4K bytes
    - Viewed (0)
Back to top