Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 805 for goroutineID (0.4 sec)

  1. src/runtime/time.go

    	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
    // sleep and there are many goroutines then the P can wind up running the
    // timer function, goroutineReady, before the goroutine has been parked.
    func resetForSleep(gp *g, _ unsafe.Pointer) bool {
    	gp.timer.reset(gp.sleepWhen, 0)
    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/internal/trace/testdata/generators/go122-confuse-seq-across-generations.go

    }
    
    func gen(t *testgen.Trace) {
    	g1 := t.Generation(1)
    
    	// A running goroutine blocks.
    	b10 := g1.Batch(trace.ThreadID(0), 0)
    	b10.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b10.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b10.Event("GoStop", "whatever", testgen.NoStack)
    
    	// The running goroutine gets unblocked.
    	b11 := g1.Batch(trace.ThreadID(1), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. pkg/ctrlz/topics/proc.go

    	Threads    int    `json:"threads"`
    	Goroutines int    `json:"goroutines"`
    }
    
    func getProcInfo() *procInfo {
    	pi := procInfo{
    		Egid:       os.Getegid(),
    		Euid:       os.Geteuid(),
    		GID:        os.Getgid(),
    		Pid:        os.Getpid(),
    		Ppid:       os.Getppid(),
    		UID:        os.Getuid(),
    		TempDir:    os.TempDir(),
    		Goroutines: runtime.NumGoroutine(),
    	}
    
    	pi.Groups, _ = os.Getgroups()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/database/sql/driver/driver.go

    	// parses the name parameter.
    	OpenConnector(name string) (Connector, error)
    }
    
    // A Connector represents a driver in a fixed configuration
    // and can create any number of equivalent Conns for use
    // by multiple goroutines.
    //
    // A Connector can be passed to [database/sql.OpenDB], to allow drivers
    // to implement their own [database/sql.DB] constructors, or returned by
    // [DriverContext]'s OpenConnector method, to allow drivers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 09:04:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  5. src/runtime/traceallocfree.go

    }
    
    // GoroutineStackExists records that a goroutine stack already exists at address base with the provided size.
    func (tl traceLocker) GoroutineStackExists(base, size uintptr) {
    	order := traceCompressStackSize(size)
    	tl.eventWriter(traceGoRunning, traceProcRunning).commit(traceEvGoroutineStack, traceGoroutineStackID(base), order)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/runtime/tracecpu.go

    	//
    	// Wake the goroutine so it can observe that their the buffer is
    	// closed an exit.
    	trace.cpuLogWrite[0].Store(nil)
    	trace.cpuLogWrite[1].Store(nil)
    	trace.cpuLogRead[0].close()
    	trace.cpuLogRead[1].close()
    	trace.cpuSleep.wake()
    
    	// Wait until the logger goroutine exits.
    	<-trace.cpuLogDone
    
    	// Clear state for the next trace.
    	trace.cpuLogDone = nil
    	trace.cpuLogRead[0] = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprog/preempt.go

    	go func() {
    		atomic.AddUint32(&ready2, 1)
    		for {
    		}
    	}()
    
    	// Wait for the goroutine to stop passing through sync
    	// safe-points.
    	for atomic.LoadUint32(&ready) == 0 || atomic.LoadUint32(&ready2) < 2 {
    		runtime.Gosched()
    	}
    
    	// Run a GC, which will have to stop the goroutine for STW and
    	// for stack scanning. If this doesn't work, the test will
    	// deadlock and timeout.
    	runtime.GC()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 07 17:46:04 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprog/lockosthread.go

    	// Check that this goroutine is still running on a different
    	// thread.
    	if mainTID != 0 && gettid() == mainTID {
    		println("goroutine migrated to locked thread")
    		os.Exit(1)
    	}
    	println("OK")
    }
    
    func LockOSThreadAlt() {
    	// This is running locked to the main OS thread.
    
    	var subTID int
    	ready := make(chan bool, 1)
    	go func() {
    		// This goroutine must be running on a new thread.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. test/ken/chan1.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test communication with multiple simultaneous goroutines.
    
    package main
    
    import "runtime"
    
    const N = 1000 // sent messages
    const M = 10   // receiving goroutines
    const W = 2    // channel buffering
    var h [N]int   // marking of send/recv
    
    func r(c chan int, m int) {
    	for {
    		select {
    		case r := <-c:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 21:47:04 UTC 2012
    - 879 bytes
    - Viewed (0)
  10. src/cmd/gofmt/long_test.go

    	}
    	if *verbose {
    		fmt.Printf("running test using %d goroutines\n", *ngo)
    	}
    
    	// generate filenames
    	filenames := make(chan string, 32)
    	go genFilenames(t, filenames)
    
    	// launch test goroutines
    	done := make(chan int)
    	for i := 0; i < *ngo; i++ {
    		go testFiles(t, filenames, done)
    	}
    
    	// wait for all test goroutines to complete
    	for i := 0; i < *ngo; i++ {
    		<-done
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 20:27:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top