Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 733 for isSelect (0.3 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. 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)
  5. 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)
  6. tests/table_test.go

    	}
    
    	r = dryDB.Table("gorm.user").Select("name").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT .name. FROM .gorm.\\..user. WHERE .user.\\..deleted_at. IS NULL").MatchString(r.Statement.SQL.String()) {
    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    	r = dryDB.Select("name").Find(&UserWithTable{}).Statement
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Mar 09 09:31:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. test/return.go

    	print(1)
    	select {
    	case <-c:
    		print(2)
    		panic("abc")
    	case c <- 1:
    		print(2)
    		goto L
    	}
    }
    
    func _() int {
    	print(1)
    	select {
    	case <-c:
    		print(2)
    		panic("abc")
    	default:
    		select{}
    	}
    }
    
    // if any cases don't terminate, the select isn't okay anymore
    
    func _() int {
    	print(1)
    	select {
    	case <-c:
    		print(2)
    	}
    } // ERROR "missing return"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 32.7K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/BuildInitInteractiveIntegrationTest.groovy

            // Select default project name
            ConcurrentTestUtil.poll(60) {
                assert handle.standardOutput.contains(projectNamePrompt)
            }
            handle.stdinPipe.write(TextUtil.platformLineSeparator.bytes)
    
            // Select 'Single project'
            ConcurrentTestUtil.poll(60) {
                assert handle.standardOutput.contains("Select application structure:")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 10 12:58:10 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/gcc/AbstractGccCompatibleToolChainTest.groovy

            expect:
            toolChain.select(platform).available
        }
    
        def "setTargets removes existing platforms"() {
            given:
            platform.name >> "SomePlatform"
            toolChain.target("SomePlatform", Mock(Action))
            toolChain.setTargets("NoPlatform")
    
            expect:
            !toolChain.select(platform).available
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  10. chainable_api.go

    //
    // Use Select when you only want a subset of the fields. By default, GORM will select all fields.
    // Select accepts both string arguments and arrays.
    //
    //	// Select name and age of user using multiple arguments
    //	db.Select("name", "age").Find(&users)
    //	// Select name and age of user using an array
    //	db.Select([]string{"name", "age"}).Find(&users)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:47:34 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top