- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for selectnbsend (0.2 sec)
-
src/cmd/compile/internal/typecheck/_builtin/runtime.go
// *byte is really *runtime.Type func typedmemmove(typ *byte, dst *any, src *any) func typedmemclr(typ *byte, dst *any) func typedslicecopy(typ *byte, dstPtr *any, dstLen int, srcPtr *any, srcLen int) int func selectnbsend(hchan chan<- any, elem *any) bool func selectnbrecv(elem *any, hchan <-chan any) (bool, bool) func selectsetpc(pc *uintptr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 10.6K bytes - Viewed (0) -
src/runtime/chan.go
} // compiler implements // // select { // case c <- v: // ... foo // default: // ... bar // } // // as // // if selectnbsend(c, v) { // ... foo // } else { // ... bar // } func selectnbsend(c *hchan, elem unsafe.Pointer) (selected bool) { return chansend(c, elem, false, getcallerpc()) } // compiler implements // // select { // case v, ok = <-c:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 25.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
{"chanlen", funcTag, 106}, {"chancap", funcTag, 106}, {"writeBarrier", varTag, 108}, {"typedmemmove", funcTag, 109}, {"typedmemclr", funcTag, 110}, {"typedslicecopy", funcTag, 111}, {"selectnbsend", funcTag, 112}, {"selectnbrecv", funcTag, 113}, {"selectsetpc", funcTag, 114}, {"selectgo", funcTag, 115}, {"block", funcTag, 9}, {"makeslice", funcTag, 116}, {"makeslice64", funcTag, 117},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0) -
src/runtime/select.go
val unsafe.Pointer // ptr to data (SendDir) or ptr to receive buffer (RecvDir) } // These values must match ../reflect/value.go:/SelectDir. type selectDir int const ( _ selectDir = iota selectSend // case Chan <- Send selectRecv // case <-Chan: selectDefault // default ) //go:linkname reflect_rselect reflect.rselect
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 13 21:36:04 UTC 2024 - 15K bytes - Viewed (0) -
test/escape_reflect.go
func select2(ch chan string, x string) { // ERROR "leaking param: ch$" "leaking param: x$" vc := reflect.ValueOf(ch) vx := reflect.ValueOf(x) // ERROR "x escapes to heap" cas := reflect.SelectCase{Dir: reflect.SelectSend, Chan: vc, Send: vx} reflect.Select([]reflect.SelectCase{cas}) // ERROR "\[\]reflect.SelectCase{...} does not escape" } var ( intTyp = reflect.TypeOf(int(0)) // ERROR "0 does not escape"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 13.1K bytes - Viewed (0)