Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTimerFairness2 (0.23 sec)

  1. src/runtime/proc_test.go

    				}
    			}
    		}()
    	}
    
    	timer := time.After(20 * time.Millisecond)
    	for {
    		select {
    		case <-c:
    		case <-timer:
    			close(done)
    			return
    		}
    	}
    }
    
    func TestTimerFairness2(t *testing.T) {
    	if runtime.GOARCH == "wasm" {
    		t.Skip("no preemption on wasm yet")
    	}
    
    	done := make(chan bool)
    	c := make(chan bool)
    	for i := 0; i < 2; i++ {
    		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