Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,724 for select64 (0.16 sec)

  1. test/chan/select6.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test for select: Issue 2075
    // A bug in select corrupts channel queues of failed cases
    // if there are multiple waiters on those channels and the
    // select is the last in the queue. If further waits are made
    // on the channel without draining it first then those waiters
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 783 bytes
    - Viewed (0)
  2. src/runtime/select.go

    // nil.
    //
    // selectgo returns the index of the chosen scase, which matches the
    // ordinal position of its respective select{recv,send,default} call.
    // Also, if the chosen scase was a receive operation, it reports whether
    // a value was received.
    func selectgo(cas0 *scase, order0 *uint16, pc0 *uintptr, nsends, nrecvs int, block bool) (int, bool) {
    	if debugSelect {
    		print("select: cas0=", cas0, "\n")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/testdata/sidecar-selector.yaml

        labels:
          app: reviews # Multiple sidecars have the same selector, should generate errors for both
      egress:
      - hosts:
        - "./*"
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: Sidecar
    metadata:
      name: dupe-2
      namespace: default
    spec:
      workloadSelector:
        labels:
          app: reviews # Multiple sidecars have the same selector, should generate errors for both
      egress:
      - hosts:
        - "./*"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. test/chan/select3.go

    	testBlock(always, func() {
    		ch := make(chan int)
    		<-ch
    	})
    
    	// empty selects always block
    	testBlock(always, func() {
    		select {}
    	})
    
    	// selects with only nil channels always block
    	testBlock(always, func() {
    		select {
    		case <-nilch:
    			unreachable()
    		}
    	})
    	testBlock(always, func() {
    		select {
    		case nilch <- 7:
    			unreachable()
    		}
    	})
    	testBlock(always, func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 08 02:10:12 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  5. pkg/config/analysis/analyzers/testdata/telemetry-default-selector.yaml

    kind: Telemetry
    metadata:
      name: no-selector # Since this is the only Telemetry in the namespace without a selector, no conflict
      namespace: ns1
    spec:
      metrics:
      - providers:
        - name: prometheus
        overrides:
        - match:
            metric: ALL_METRICS
          disabled: false
    ---
    apiVersion: telemetry.istio.io/v1alpha1
    kind: Telemetry
    metadata:
      name: has-selector
      namespace: ns1
    spec:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 03 06:56:06 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. pkg/config/analysis/analyzers/testdata/sidecar-default-selector.yaml

    kind: Sidecar
    metadata:
      name: no-selector # Since this is the only Sidecar in the namespace without a workload selector, no conflict
      namespace: ns1
    spec:
      egress:
      - hosts:
        - "./*"
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: Sidecar
    metadata:
      name: has-selector
      namespace: ns1
    spec:
      workloadSelector: # Since this has a workload selector, it shouldn't conflict with the other Sidecar in the namespace
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Dec 23 13:38:38 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. test/chan/select4.go

    // license that can be found in the LICENSE file
    
    // Test that a select statement proceeds when a value is ready.
    
    package main
    
    func f() *int {
    	println("BUG: called f")
    	return new(int)
    }
    
    func main() {
    	var x struct {
    		a int
    	}
    	c := make(chan int, 1)
    	c1 := make(chan int)
    	c <- 42
    	select {
    	case *f() = <-c1:
    		// nothing
    	case x.a = <-c:
    		if x.a != 42 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 513 bytes
    - Viewed (0)
  8. hack/testdata/filter/pod-apply-selector.yaml

    apiVersion: v1
    kind: Pod
    metadata:
      name: selector-test-pod
      labels:
        name: selector-test-pod
        unique-label: bingbang
    spec:
      containers:
      - name: kubernetes-pause
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 07:02:51 UTC 2024
    - 211 bytes
    - Viewed (0)
  9. pkg/config/analysis/analyzers/testdata/deployment-service-no-selector.yaml

    apiVersion: v1
    kind: Service
    metadata:
      name: svc-no-selector
      namespace: default
    spec:
      ports:
        - name: https
          port: 443
          protocol: TCP
          targetPort: 6443
    ---
    # this deployment is not associated with any service, so it should generate a warning
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: helloworld-v2
      namespace: default
      labels:
        app: helloworld
        version: v2
    spec:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 03:43:16 UTC 2023
    - 894 bytes
    - Viewed (0)
  10. test/chan/select2.go

    // license that can be found in the LICENSE file.
    
    // Test that selects do not consume undue memory.
    
    package main
    
    import "runtime"
    
    func sender(c chan int, n int) {
    	for i := 0; i < n; i++ {
    		c <- 1
    	}
    }
    
    func receiver(c, dummy chan int, n int) {
    	for i := 0; i < n; i++ {
    		select {
    		case <-c:
    			// nothing
    		case <-dummy:
    			panic("dummy")
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1K bytes
    - Viewed (0)
Back to top