Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 94 for gopark (0.18 sec)

  1. src/runtime/time.go

    	if t == nil {
    		t = new(timer)
    		t.init(goroutineReady, gp)
    		gp.timer = t
    	}
    	when := nanotime() + ns
    	if when < 0 { // check for overflow.
    		when = maxWhen
    	}
    	gp.sleepWhen = when
    	gopark(resetForSleep, nil, waitReasonSleep, traceBlockSleep, 1)
    }
    
    // resetForSleep is called after the goroutine is parked for timeSleep.
    // We can't call timer.reset in timeSleep itself because if this is a short
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/help/helpdoc.go

    the go tool will verify that https://example.org/?go-get=1 contains the
    same meta tag and then git clone https://code.org/r/p/exproj into
    GOPATH/src/example.org.
    
    When using GOPATH, downloaded packages are written to the first directory
    listed in the GOPATH environment variable.
    (See 'go help gopath-get' and 'go help gopath'.)
    
    When using modules, downloaded packages are stored in the module cache.
    See https://golang.org/ref/mod#module-cache.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/envcmd/env.go

    	} else if modload.Enabled() {
    		gomod = os.DevNull
    	}
    	modload.InitWorkfile()
    	gowork := modload.WorkFilePath()
    	// As a special case, if a user set off explicitly, report that in GOWORK.
    	if cfg.Getenv("GOWORK") == "off" {
    		gowork = "off"
    	}
    	return []cfg.EnvVar{
    		{Name: "GOMOD", Value: gomod},
    		{Name: "GOWORK", Value: gowork},
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/InterruptibleTask.java

             * protect ourselves from this, we park ourselves and tell our interrupter that we did so.
             */
            if (state == PARKED || compareAndSet(state, PARKED)) {
              // Interrupting Cow Says:
              //  ______
              // < Park >
              //  ------
              //        \   ^__^
              //         \  (oo)\_______
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 29 21:34:48 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/README

    a small script engine configured in ../../script_test.go (not the system shell).
    
    The scripts' supporting files are unpacked relative to $GOPATH/src
    (aka $WORK/gopath/src) and then the script begins execution in that directory as
    well. Thus the example above runs in $WORK/gopath/src with GOPATH=$WORK/gopath
    and $WORK/gopath/src/hello.go containing the listed contents.
    
    Each line of a script is parsed into a sequence of space-separated command
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/cmd/internal/moddeps/moddeps_test.go

    	// GOMODCACHE. If the default directory doesn't exist, use a temporary
    	// directory instead. (That can occur, for example, when running under
    	// run.bash with GO_TEST_SHORT=0: run.bash sets GOPATH=/nonexist-gopath, and
    	// GO_TEST_SHORT=0 causes it to run this portion of the test.)
    	var modcacheEnv []string
    	{
    		out, err := testenv.Command(t, goBin, "env", "GOMODCACHE").Output()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. src/cmd/go/main.go

    	}
    
    	// Diagnose common mistake: GOPATH==GOROOT.
    	// This setting is equivalent to not setting GOPATH at all,
    	// which is not what most people want when they do it.
    	if gopath := cfg.BuildContext.GOPATH; filepath.Clean(gopath) == filepath.Clean(cfg.GOROOT) {
    		fmt.Fprintf(os.Stderr, "warning: GOPATH set to GOROOT (%s) has no effect\n", gopath)
    	} else {
    		for _, p := range filepath.SplitList(gopath) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		}
    	}
    
    	// We need a writable GOPATH in which to run the tests.
    	// Construct one in a temporary directory.
    	var err error
    	GOPATH, err = os.MkdirTemp("", "carchive_test")
    	if err != nil {
    		log.Panic(err)
    	}
    	if testWork {
    		log.Println(GOPATH)
    	} else {
    		defer os.RemoveAll(GOPATH)
    	}
    	os.Setenv("GOPATH", GOPATH)
    
    	// Copy testdata into GOPATH/src/testarchive, along with a go.mod file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  9. Makefile

    	@echo "Installing minio binary with -race to '$(GOPATH)/bin/minio'"
    	@mkdir -p $(GOPATH)/bin && cp -af $(PWD)/minio $(GOPATH)/bin/minio
    
    install: build ## builds minio and installs it to $GOPATH/bin.
    	@echo "Installing minio binary to '$(GOPATH)/bin/minio'"
    	@mkdir -p $(GOPATH)/bin && cp -af $(PWD)/minio $(GOPATH)/bin/minio
    	@echo "Installation successful. To learn more, try \"minio --help\"."
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/plugin_test.go

    	// Copy testdata into GOPATH/src/testplugin, along with a go.mod file
    	// declaring the same path.
    
    	GOPATH, err := os.MkdirTemp("", "plugin_test")
    	if err != nil {
    		log.Panic(err)
    	}
    	defer os.RemoveAll(GOPATH)
    	tmpDir = GOPATH
    	fmt.Printf("TMPDIR=%s\n", tmpDir)
    
    	modRoot := filepath.Join(GOPATH, "src", "testplugin")
    	altRoot := filepath.Join(GOPATH, "alt", "src", "testplugin")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top