Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 652 for NCases (0.11 sec)

  1. src/runtime/select.go

    	selectDefault           // default
    )
    
    //go:linkname reflect_rselect reflect.rselect
    func reflect_rselect(cases []runtimeSelect) (int, bool) {
    	if len(cases) == 0 {
    		block()
    	}
    	sel := make([]scase, len(cases))
    	orig := make([]int, len(cases))
    	nsends, nrecvs := 0, 0
    	dflt := -1
    	for i, rc := range cases {
    		var j int
    		switch rc.dir {
    		case selectDefault:
    			dflt = i
    			continue
    		case selectSend:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    	var defaultFallthrough *Block
    	var fallthru, defaultBlock *Block
    	ncases := len(s.Body.List)
    	for i, clause := range s.Body.List {
    		body := fallthru
    		if body == nil {
    			body = b.newBlock(KindSwitchCaseBody, clause) // first case only
    		}
    
    		// Preallocate body block for the next case.
    		fallthru = done
    		if i+1 < ncases {
    			fallthru = b.newBlock(KindSwitchCaseBody, s.Body.List[i+1])
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. src/runtime/iface.go

    // interfaceSwitch compares t against the list of cases in s.
    // If t matches case i, interfaceSwitch returns the case index i and
    // an itab for the pair <t, s.Cases[i]>.
    // If there is no match, return N,nil, where N is the number
    // of cases.
    func interfaceSwitch(s *abi.InterfaceSwitch, t *_type) (int, *itab) {
    	cases := unsafe.Slice(&s.Cases[0], s.NCases)
    
    	// Results if we don't find a match.
    	case_ := len(cases)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/switch.go

    	labels := make([]*types.Sym, len(sw.Cases))
    	for i := range sw.Cases {
    		labels[i] = typecheck.AutoLabel(".s")
    	}
    
    	// "jump" to execute if no case matches.
    	br := ir.NewBranchStmt(base.Pos, ir.OBREAK, nil)
    
    	// Assemble a list of all the types we're looking for.
    	// This pass flattens the case lists, as well as handles
    	// some unusual cases, like default and nil cases.
    	type oneCase struct {
    		pos src.XPos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/upgrade/node.go

    	addUpgradeNodeFlags(cmd.Flags(), nodeOptions)
    	options.AddConfigFlag(cmd.Flags(), &nodeOptions.cfgPath)
    	options.AddPatchesFlag(cmd.Flags(), &nodeOptions.patchesDir)
    
    	// initialize the workflow runner with the list of phases
    	nodeRunner.AppendPhase(phases.NewPreflightPhase())
    	nodeRunner.AppendPhase(phases.NewControlPlane())
    	nodeRunner.AppendPhase(phases.NewKubeletConfigPhase())
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/join.go

    	addJoinOtherFlags(cmd.Flags(), joinOptions)
    
    	joinRunner.AppendPhase(phases.NewPreflightPhase())
    	joinRunner.AppendPhase(phases.NewControlPlanePreparePhase())
    	joinRunner.AppendPhase(phases.NewCheckEtcdPhase())
    	joinRunner.AppendPhase(phases.NewKubeletStartPhase())
    	joinRunner.AppendPhase(phases.NewControlPlaneJoinPhase())
    	joinRunner.AppendPhase(phases.NewWaitControlPlanePhase())
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 15:33:38 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    			expect: authorizer.DecisionNoOpinion,
    		},
    		{
    			name:   "disallowed list node leases - feature enabled",
    			attrs:  authorizer.AttributesRecord{User: node0, ResourceRequest: true, Verb: "list", Resource: "leases", APIGroup: "coordination.k8s.io", Namespace: corev1.NamespaceNodeLease},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  8. pkg/controller/storageversiongc/gc_controller.go

    	"k8s.io/client-go/tools/cache"
    	"k8s.io/client-go/util/workqueue"
    	"k8s.io/kubernetes/pkg/controlplane"
    
    	"k8s.io/klog/v2"
    )
    
    // Controller watches kube-apiserver leases and storageversions, and delete stale
    // storage version entries and objects.
    type Controller struct {
    	kubeclientset kubernetes.Interface
    
    	leaseLister  coordlisters.LeaseLister
    	leasesSynced cache.InformerSynced
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/devicemanager/topology_hints_test.go

    		}
    	}
    }
    
    func TestGetPodTopologyHints(t *testing.T) {
    	tcases := getCommonTestCases()
    	tcases = append(tcases, getPodScopeTestCases()...)
    
    	for _, tc := range tcases {
    		m := ManagerImpl{
    			allDevices:       NewResourceDeviceInstances(),
    			healthyDevices:   make(map[string]sets.Set[string]),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/html.go

    	}
    	w.prevHash = hash
    }
    
    // flushPhases collects any pending phases and titles, writes them to the html, and resets the pending slices.
    func (w *HTMLWriter) flushPhases() {
    	phaseLen := len(w.pendingPhases)
    	if phaseLen == 0 {
    		return
    	}
    	phases := strings.Join(w.pendingPhases, "  +  ")
    	w.WriteMultiTitleColumn(
    		phases,
    		w.pendingTitles,
    		fmt.Sprintf("hash-%x", w.prevHash),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
Back to top