Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for warmupScheduler (0.24 sec)

  1. src/time/sleep_test.go

    					b.ReportMetric(total/samples, "avg-late-ns")
    					b.ReportMetric(float64(max.Nanoseconds()), "max-late-ns")
    				})
    			}
    		})
    	}
    }
    
    // warmupScheduler ensures the scheduler has at least targetThreadCount threads
    // in its thread pool.
    func warmupScheduler(targetThreadCount int) {
    	var wg sync.WaitGroup
    	var count int32
    	for i := 0; i < targetThreadCount; i++ {
    		wg.Add(1)
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. src/runtime/proc_test.go

    			go func() {
    				if i >= N {
    					b.Logf("bad") // just to capture b
    				}
    				wg.Done()
    			}()
    		}
    		wg.Wait()
    	}
    }
    
    // warmupScheduler ensures the scheduler has at least targetThreadCount threads
    // in its thread pool.
    func warmupScheduler(targetThreadCount int) {
    	var wg sync.WaitGroup
    	var count int32
    	for i := 0; i < targetThreadCount; i++ {
    		wg.Add(1)
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
Back to top