Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 805 for goroutineID (0.41 sec)

  1. src/context/example_test.go

    			defer cond.L.Unlock()
    
    			// If multiple goroutines are waiting on cond simultaneously,
    			// we need to make sure we wake up exactly this one.
    			// That means that we need to Broadcast to all of the goroutines,
    			// which will wake them all up.
    			//
    			// If there are N concurrent calls to waitOnCond, each of the goroutines
    			// will spuriously wake up O(N) other goroutines that aren't ready yet,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/cmd/trace/jsontrace.go

    	mode      traceviewer.Mode
    	startTime time.Duration
    	endTime   time.Duration
    
    	// Used if mode != 0.
    	focusGoroutine trace.GoID
    	goroutines     map[trace.GoID]struct{} // Goroutines to be displayed for goroutine-oriented or task-oriented view. goroutines[0] is the main goroutine.
    	tasks          []*trace.UserTaskSummary
    }
    
    // setTask sets a task to focus on.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/runtime/extern.go

    	"freezes the world", preempting all threads to stop all running
    	goroutines, which makes it possible to traceback all goroutines, and
    	keeps their state close to the point of panic. Setting
    	dontfreezetheworld=1 disables this preemption, allowing goroutines to
    	continue executing during panic processing. Note that goroutines that
    	naturally enter the scheduler will still stop. This can be useful when
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/runtime/runtime-gdb.py

    class GoroutineCmd(gdb.Command):
    	"""Execute gdb command in the context of goroutine <goid>.
    
    	Switch PC and SP to the ones in the goroutine's G structure,
    	execute an arbitrary gdb command, and restore PC and SP.
    
    	Usage: (gdb) goroutine <goid> <gdbcmd>
    
    	You could pass "all" as <goid> to apply <gdbcmd> to all goroutines.
    
    	For example: (gdb) goroutine all <gdbcmd>
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  5. src/internal/trace/summary_test.go

    				}
    			}
    		}
    
    		// Check goroutines.
    		if len(want.goroutines) != len(summary.Goroutines) {
    			t.Errorf("wanted %d goroutines for task %d, got %d goroutines instead", len(want.goroutines), id, len(summary.Goroutines))
    		} else {
    			for _, goid := range want.goroutines {
    				g, ok := summary.Goroutines[goid]
    				if !ok {
    					t.Errorf("want goroutine %d for task %d, not found", goid, id)
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sync/errgroup/errgroup.go

    		}
    	}()
    	return true
    }
    
    // SetLimit limits the number of active goroutines in this group to at most n.
    // A negative value indicates no limit.
    //
    // Any subsequent call to the Go method will block until it can add an active
    // goroutine without exceeding the configured limit.
    //
    // The limit must not be modified while any goroutines in the group are active.
    func (g *Group) SetLimit(n int) {
    	if n < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. src/sync/mutex.go

    	}
    }
    
    // Unlock unlocks m.
    // It is a run-time error if m is not locked on entry to Unlock.
    //
    // A locked [Mutex] is not associated with a particular goroutine.
    // It is allowed for one goroutine to lock a Mutex and then
    // arrange for another goroutine to unlock it.
    func (m *Mutex) Unlock() {
    	if race.Enabled {
    		_ = m.state
    		race.Release(unsafe.Pointer(m))
    	}
    
    	// Fast path: drop lock bit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/counter/interface.go

    type GoRoutineCounter interface {
    	// Add adds the given delta to the count of active goroutines.
    	// Call Add(1) before forking a goroutine, Add(-1) at the end of that goroutine.
    	// Call Add(-1) just before waiting on something from another goroutine (e.g.,
    	// just before a `select`).
    	// Call Add(1) just before doing something that unblocks a goroutine that is
    	// waiting on that something.
    	Add(delta int)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 16:12:48 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/testprog/stress.go

    // Tests a many interesting cases (network, syscalls, a little GC, busy goroutines,
    // blocked goroutines, LockOSThread, pipes, and GOMAXPROCS).
    
    //go:build ignore
    
    package main
    
    import (
    	"log"
    	"net"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    	"time"
    )
    
    func main() {
    	var wg sync.WaitGroup
    	done := make(chan bool)
    
    	// Create a goroutine blocked before tracing.
    	wg.Add(1)
    	go func() {
    		<-done
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/doc.go

    // Fatal from a test goroutine.
    //
    // # Analyzer testinggoroutine
    //
    // testinggoroutine: report calls to (*testing.T).Fatal from goroutines started by a test
    //
    // Functions that abruptly terminate a test, such as the Fatal, Fatalf, FailNow, and
    // Skip{,f,Now} methods of *testing.T, must be called from the test goroutine itself.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 853 bytes
    - Viewed (0)
Back to top