Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,871 for parked (0.17 sec)

  1. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

             * protect ourselves from this, we park ourselves and tell our interrupter that we did so.
             */
            if (state == PARKED || compareAndSet(state, PARKED)) {
              // Interrupting Cow Says:
              //  ______
              // < Park >
              //  ------
              //        \   ^__^
              //         \  (oo)\_______
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 29 21:34:48 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/InterruptibleTask.java

             * protect ourselves from this, we park ourselves and tell our interrupter that we did so.
             */
            if (state == PARKED || compareAndSet(state, PARKED)) {
              // Interrupting Cow Says:
              //  ______
              // < Park >
              //  ------
              //        \   ^__^
              //         \  (oo)\_______
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 29 21:34:48 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_finished_subtest_goroutines.txt

    		t.Parallel()
    		wg.Wait()
    		for i := 0; i < nFast; i++ {
    			// If the subtest goroutines are going to park on the channel
    			// send, allow them to park now. If they're not going to park,
    			// make sure they have had a chance to run to completion so
    			// that they aren't spuriously parked when we panic.
    			runtime.Gosched()
    		}
    		panic("slow failure")
    	})
    
    	wg.Add(nFast)
    	for i := 0; i < nFast; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 19 17:34:25 UTC 2021
    - 1K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    }
    
    // Wake wakes up a parked scavenger to keep running.
    func (s *Scavenger) Wake() {
    	s.scavenger.wake()
    }
    
    // Stop cleans up the scavenger's resources. The scavenger
    // must be parked for this to work.
    func (s *Scavenger) Stop() {
    	lock(&s.scavenger.lock)
    	parked := s.scavenger.parked
    	unlock(&s.scavenger.lock)
    	if !parked {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  5. src/runtime/mgcscavenge.go

    // and by the end of the GC mark phase, the heap tends to be densely packed. Releasing
    // memory in these densely packed chunks while they're being packed is counter-productive,
    // and worse, it breaks up huge pages on systems that support them. The scavenger (invoked
    // during memory allocation) further ensures that chunks it identifies as "dense" are
    // immediately eligible for being backed by huge pages. Note that for the most part these
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                    final AtomicInteger parked = new AtomicInteger();
    
                    @Override
                    public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
                            throws InterruptedException {
                        setCorePoolSize(parallelism + parked.incrementAndGet());
                        try {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 16:34:29 UTC 2024
    - 57.1K bytes
    - Viewed (0)
  7. src/runtime/mgcsweep.go

    //   can free a whole span if none of the objects are marked, but that
    //   isn't its goal. This can be driven either synchronously by
    //   mcentral.cacheSpan for mcentral spans, or asynchronously by
    //   sweepone, which looks at all the mcentral lists.
    //
    // * The span reclaimer looks for spans that contain no marked objects
    //   and frees whole spans. This is a separate algorithm because
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  8. src/runtime/HACKING.md

    blocking the G directly since it consumes an M.
    
    To interact directly with the goroutine scheduler, use `gopark` and
    `goready`. `gopark` parks the current goroutine—putting it in the
    "waiting" state and removing it from the scheduler's run queue—and
    schedules another goroutine on the current M/P. `goready` puts a
    parked goroutine back in the "runnable" state and adds it to the run
    queue.
    
    In summary,
    
    <table>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/runtime/time.go

    }
    
    // resetForSleep is called after the goroutine is parked for timeSleep.
    // We can't call timer.reset in timeSleep itself because if this is a short
    // sleep and there are many goroutines then the P can wind up running the
    // timer function, goroutineReady, before the goroutine has been parked.
    func resetForSleep(gp *g, _ unsafe.Pointer) bool {
    	gp.timer.reset(gp.sleepWhen, 0)
    	return true
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  10. src/testing/testing_test.go

    }
    
    func TestRunningTests(t *testing.T) {
    	t.Parallel()
    
    	// Regression test for https://go.dev/issue/64404:
    	// on timeout, the "running tests" message should not include
    	// tests that are waiting on parked subtests.
    
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
    		for i := 0; i < 2; i++ {
    			t.Run(fmt.Sprintf("outer%d", i), func(t *testing.T) {
    				t.Parallel()
    				for j := 0; j < 2; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top