Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,869 for isSelect (0.14 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/runtime/chan.go

    //  At least one of c.sendq and c.recvq is empty,
    //  except for the case of an unbuffered channel with a single goroutine
    //  blocked on it for both sending and receiving using a select statement,
    //  in which case the length of c.sendq and c.recvq is limited only by the
    //  size of the select statement.
    //
    // For buffered channels, also:
    //  c.qcount > 0 implies that c.recvq is empty.
    //  c.qcount < c.dataqsiz implies that c.sendq is empty.
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. src/runtime/runtime2.go

    	// are only accessed when holding a semaRoot lock.
    
    	acquiretime int64
    	releasetime int64
    	ticket      uint32
    
    	// isSelect indicates g is participating in a select, so
    	// g.selectDone must be CAS'd to win the wake-up race.
    	isSelect bool
    
    	// success indicates whether communication over channel c
    	// succeeded. It is true if the goroutine was awoken because a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/go/internal/toolchain/select.go

    var counterErrorsInvalidToolchainInFile = telemetry.NewCounter("go/errors:invalid-toolchain-in-file")
    
    // Select invokes a different Go toolchain if directed by
    // the GOTOOLCHAIN environment variable or the user's configuration
    // or go.mod file.
    // It must be called early in startup.
    // See https://go.dev/doc/toolchain#select.
    func Select() {
    	log.SetPrefix("go: ")
    	defer log.SetPrefix("")
    
    	if !modload.WillBeEnabled() {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. internal/s3select/select.go

    		return nil
    	}
    
    	panic(fmt.Errorf("unknown output format '%v'", s3Select.Output.format))
    }
    
    // Evaluate - filters and sends records read from opened reader as per select statement to http response writer.
    func (s3Select *S3Select) Evaluate(w http.ResponseWriter) {
    	getProgressFunc := s3Select.getProgress
    	if !s3Select.Progress.Enabled {
    		getProgressFunc = nil
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top