Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setMaxThreads (0.14 sec)

  1. src/os/os_test.go

    		if err != nil {
    			for j := 0; j < i; j++ {
    				r[j].Close()
    				w[j].Close()
    			}
    			t.Fatal(err)
    		}
    		r[i] = rp
    		w[i] = wp
    	}
    
    	defer debug.SetMaxThreads(debug.SetMaxThreads(threads / 2))
    
    	creading := make(chan bool, threads)
    	cdone := make(chan bool, threads)
    	for i := 0; i < threads; i++ {
    		go func(i int) {
    			var b [1]byte
    			creading <- true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top