Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,090 for rselect (0.1 sec)

  1. src/runtime/select.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    // This file contains the implementation of Go select statements.
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    const debugSelect = false
    
    // Select case descriptor.
    // Known to compiler.
    // Changes here must also be made in src/cmd/compile/internal/walk/select.go's scasetype.
    type scase struct {
    	c    *hchan         // chan
    	elem unsafe.Pointer // data element
    }
    
    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/reflect/value.go

    		switch c.Dir {
    		default:
    			panic("reflect.Select: invalid Dir")
    
    		case SelectDefault: // default
    			if haveDefault {
    				panic("reflect.Select: multiple default cases")
    			}
    			haveDefault = true
    			if c.Chan.IsValid() {
    				panic("reflect.Select: default case has Chan value")
    			}
    			if c.Send.IsValid() {
    				panic("reflect.Select: default case has Send value")
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. clause/select.go

    package clause
    
    // Select select attrs when querying, updating, creating
    type Select struct {
    	Distinct   bool
    	Columns    []Column
    	Expression Expression
    }
    
    func (s Select) Name() string {
    	return "SELECT"
    }
    
    func (s Select) Build(builder Builder) {
    	if len(s.Columns) > 0 {
    		if s.Distinct {
    			builder.WriteString("DISTINCT ")
    		}
    
    		for idx, column := range s.Columns {
    			if idx > 0 {
    				builder.WriteByte(',')
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jul 14 07:51:24 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/select.go

    	// optimization: zero-case select
    	if ncas == 0 {
    		return []ir.Node{mkcallstmt("block")}
    	}
    
    	// optimization: one-case select: single op.
    	if ncas == 1 {
    		cas := cases[0]
    		ir.SetPos(cas)
    		l := cas.Init()
    		if cas.Comm != nil { // not default:
    			n := cas.Comm
    			l = append(l, ir.TakeInit(n)...)
    			switch n.Op() {
    			default:
    				base.Fatalf("select %v", n.Op())
    
    			case ir.OSEND:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. test/chan/select.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test simple select.
    
    package main
    
    var counter uint
    var shift uint
    
    func GetValue() uint {
    	counter++
    	return 1 << shift
    }
    
    func Send(a, b chan uint) int {
    	var i int
    
    LOOP:
    	for {
    		select {
    		case a <- GetValue():
    			i++
    			a = nil
    		case b <- GetValue():
    			i++
    			b = nil
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 913 bytes
    - Viewed (0)
  6. test/codegen/select.go

    // license that can be found in the LICENSE file.
    
    package codegen
    
    func f() {
    	ch1 := make(chan int)
    	ch2 := make(chan int)
    	for {
    		// amd64:-`MOVQ\t[$]0, command-line-arguments..autotmp_3`
    		select {
    		case <-ch1:
    		case <-ch2:
    		default:
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 18:19:47 UTC 2022
    - 373 bytes
    - Viewed (0)
  7. docs/select/select.py

                      region_name='us-east-1')
    
    r = s3.select_object_content(
        Bucket='mycsvbucket',
        Key='sampledata/TotalPopulation.csv.gz',
        ExpressionType='SQL',
        Expression="select * from s3object s where s.Location like '%United States%'",
        InputSerialization={
            'CSV': {
                "FileHeaderInfo": "USE",
            },
            'CompressionType': 'GZIP',
        },
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Aug 18 00:11:39 UTC 2018
    - 1K bytes
    - Viewed (0)
  8. test/chan/select3.go

    		}
    	})
    
    	// selects with closed channels behave like ordinary operations
    	testBlock(never, func() {
    		select {
    		case <-closedch:
    		}
    	})
    	testBlock(never, func() {
    		select {
    		case x := (<-closedch):
    			_ = x
    		}
    	})
    	testBlock(never, func() {
    		select {
    		case x, ok := (<-closedch):
    			_, _ = x, ok
    		}
    	})
    	testPanic(always, func() {
    		select {
    		case closedch <- 7:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 08 02:10:12 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  9. test/chan/select5.go

    	order = 0
    	c <- n
    	{{if .Maybe}}
    	{{/*  Outside of select, left-to-right rule applies. */}}
    	{{/*  (Inside select, assignment waits until case is chosen, */}}
    	{{/*  so right hand side happens before anything on left hand side. */}}
    	*fp(&x, 1) = <-fc(c, 2)
    	{{else}}{{if .Maybe}}
    	m[fn(13, 1)] = <-fc(c, 2)
    	x = m[13]
    	{{else}}
    	select {
    	{{/*  Blocking or non-blocking, before the receive. */}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 10K bytes
    - Viewed (0)
  10. 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)
Back to top