- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for Selects (0.75 sec)
-
doc/next/7-ports.md
The `GOARM64` environment variable defaults to `v8.0`. ### RISC-V {#riscv} <!-- go.dev/issue/61476, CL 541135 --> Go 1.23 introduces a new `GORISCV64` environment variable, which selects the [RISC-V user-mode application profile](https://github.com/riscv/riscv-profiles/blob/main/src/profiles.adoc) for which to compile. Allowed values are `rva20u64` and `rva22u64`.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:18:52 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/libgo2/libgo2.go
// //export RunGoroutines func RunGoroutines() { for i := 0; i < 4; i++ { go func() { runtime.LockOSThread() select {} }() } } // Block blocks the current thread while running Go code. // //export Block func Block() { select {} } var P *byte // TestSEGV makes sure that an invalid address turns into a run-time Go panic. // //export TestSEGV func TestSEGV() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.6K bytes - Viewed (0) -
misc/ios/clangwrap.sh
#!/bin/sh # This uses the latest available iOS SDK, which is recommended. # To select a specific SDK, run 'xcodebuild -showsdks' # to see the available SDKs and replace iphoneos with one of them. if [ "$GOARCH" == "arm64" ]; then SDK=iphoneos PLATFORM=ios CLANGARCH="arm64" else SDK=iphonesimulator PLATFORM=ios-simulator CLANGARCH="x86_64" fi SDK_PATH=`xcrun --sdk $SDK --show-sdk-path` export IPHONEOS_DEPLOYMENT_TARGET=5.1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 02 16:48:07 UTC 2021 - 626 bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/ptr_test.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Tests that cgo detects invalid pointer passing at runtime. package errorstest import ( "bytes" "flag" "fmt" "internal/testenv" "os" "os/exec" "path/filepath" "slices" "strings" "sync/atomic" "testing" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:49 UTC 2023 - 21.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/libgo/libgo.go
// emulate an exceedingly slow package initialization function time.Sleep(100 * time.Millisecond) initCh <- 42 } func main() { ranMain = true } //export DidInitRun func DidInitRun() bool { select { case x := <-initCh: if x != 42 { // Just in case initCh was not correctly made. println("want init value of 42, got: ", x) syscall.Exit(2) } return true default: return false } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 767 bytes - Viewed (0) -
doc/go_spec.html
statement</a>.</li> </ul> </li> <li> A <a href="#Select_statements">"select" statement</a> in which: <ul> <li>there are no "break" statements referring to the "select" statement, and</li> <li>the statement lists in each case, including the default if present, end in a terminating statement.</li> </ul> </li> <li>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (0) -
src/cmd/cgo/doc.go
Example: //go:cgo_ldflag "-lpthread" //go:cgo_ldflag "-L/usr/local/sqlite3/lib" A package compiled with cgo will include directives for both internal and external linking; the linker will select the appropriate subset for the chosen linking mode. Example As a simple example, consider a package that uses cgo to call C.sin. The following code will be generated by cgo: // compiled by gc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/bufio/bufio_test.go
return 0, nil } func TestZeroReader(t *testing.T) { var z zeroReader r := NewReader(z) c := make(chan error) go func() { _, err := r.ReadByte() c <- err }() select { case err := <-c: if err == nil { t.Error("error expected") } else if err != io.ErrNoProgress { t.Error("unexpected error:", err) } case <-time.After(time.Second):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 18:56:01 UTC 2023 - 51.5K bytes - Viewed (0) -
api/go1.20.txt
pkg syscall (freebsd-riscv64), func RouteRIB(int, int) ([]uint8, error) #53466 pkg syscall (freebsd-riscv64), func Seek(int, int64, int) (int64, error) #53466 pkg syscall (freebsd-riscv64), func Select(int, *FdSet, *FdSet, *FdSet, *Timeval) error #53466 pkg syscall (freebsd-riscv64), func Sendfile(int, int, *int64, int) (int, error) #53466
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 21:23:32 UTC 2023 - 602.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main5.c
// signals when non-Go signals are raised. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/time.h> #include <sys/select.h> #include "libgo2.h" int *nilp; int main(int argc, char** argv) { int verbose; int test; if (argc < 2) { printf("Missing argument\n"); return 1; } test = atoi(argv[1]);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 2K bytes - Viewed (0)