Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of about 10,000 for GO (0.04 sec)

  1. internal/dsync/drwmutex_test.go

    			go reader(resource, numIterations, &activity, cdone)
    		}
    		go writer(resource, numIterations, &activity, cdone)
    		for ; i < numReaders; i++ {
    			go reader(resource, numIterations, &activity, cdone)
    		}
    		// Wait for the 2 writers and all readers to finish.
    		for i := 0; i < 2+numReaders; i++ {
    			<-cdone
    		}
    	})
    }
    
    // Borrowed from rwmutex_test.go
    func TestRWMutex(t *testing.T) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/gover/local.go

    // Copyright 2023 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.
    
    package gover
    
    import (
    	"internal/goversion"
    	"runtime"
    	"strconv"
    )
    
    // TestVersion is initialized in the go command test binary
    // to be $TESTGO_VERSION, to allow tests to override the
    // go command's idea of its own version as returned by Local.
    var TestVersion string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 15:20:23 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. src/runtime/defs_openbsd.go

    // Copyright 2009 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.
    
    //go:build ignore
    
    /*
    Input to cgo.
    
    GOARCH=amd64 go tool cgo -godefs defs_openbsd.go
    GOARCH=386 go tool cgo -godefs defs_openbsd.go
    GOARCH=arm go tool cgo -godefs defs_openbsd.go
    GOARCH=arm64 go tool cgo -godefs defs_openbsd.go
    GOARCH=mips64 go tool cgo -godefs defs_openbsd.go
    */
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:23 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/map.go

    	go func() {
    		for i := 0; i < 10000; i++ {
    			m[5] = 0
    			runtime.Gosched()
    		}
    		c <- struct{}{}
    	}()
    	go func() {
    		for i := 0; i < 10000; i++ {
    			m[6] = 0
    			runtime.Gosched()
    		}
    		c <- struct{}{}
    	}()
    	<-c
    	<-c
    }
    
    func concurrentMapReadWrite() {
    	m := map[int]int{}
    	c := make(chan struct{})
    	go func() {
    		for i := 0; i < 10000; i++ {
    			m[5] = 0
    			runtime.Gosched()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 16 21:52:44 UTC 2016
    - 1.3K bytes
    - Viewed (0)
  5. src/internal/syscall/windows/registry/mksyscall.go

    // Copyright 2016 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.
    
    //go:build generate
    
    package registry
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 22:38:00 UTC 2021
    - 300 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go

    // Copyright 2018 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.
    
    package unmarshal
    
    import (
    	_ "embed"
    	"go/ast"
    	"go/types"
    
    	"golang.org/x/tools/go/analysis"
    	"golang.org/x/tools/go/analysis/passes/inspect"
    	"golang.org/x/tools/go/analysis/passes/internal/analysisutil"
    	"golang.org/x/tools/go/ast/inspector"
    	"golang.org/x/tools/go/types/typeutil"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modcmd/verify.go

    // Copyright 2018 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.
    
    package modcmd
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"fmt"
    	"io/fs"
    	"os"
    	"runtime"
    
    	"cmd/go/internal/base"
    	"cmd/go/internal/gover"
    	"cmd/go/internal/modfetch"
    	"cmd/go/internal/modload"
    
    	"golang.org/x/mod/module"
    	"golang.org/x/mod/sumdb/dirhash"
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 16:56:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/cmd/pprof/doc.go

    // Copyright 2014 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.
    
    // Pprof interprets and displays profiles of Go programs.
    //
    // Basic usage:
    //
    //	go tool pprof binary profile
    //
    // For detailed usage information:
    //
    //	go tool pprof -h
    //
    // For an example, see https://blog.golang.org/profiling-go-programs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 419 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/teststdio/stdio_test.go

    func TestTestRun(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    	testenv.MustHaveCGO(t)
    
    	for _, file := range [...]string{
    		"chain.go",
    		"fib.go",
    		"hello.go",
    	} {
    		file := file
    		wantFile := strings.Replace(file, ".go", ".out", 1)
    		t.Run(file, func(t *testing.T) {
    			cmd := exec.Command("go", "run", file)
    			got, err := cmd.CombinedOutput()
    			if err != nil {
    				t.Fatalf("%v: %s\n%s", cmd, err, got)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/swig/swig_test.go

    	}
    
    	// Check that swig was installed with Go support by checking
    	// that a go directory exists inside the swiglib directory.
    	// See https://golang.org/issue/23469.
    	output, err := exec.Command(swig, "-go", "-swiglib").Output()
    	if err != nil {
    		t.Skip("swig is missing Go support")
    	}
    	swigDir := strings.TrimSpace(string(output))
    
    	_, err = os.Stat(filepath.Join(swigDir, "go"))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top