Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for waitParallel (0.44 sec)

  1. src/testing/testing.go

    		t.chatty.Updatef(t.name, "=== PAUSE %s\n", t.name)
    	}
    	running.Delete(t.name)
    
    	t.signal <- true   // Release calling test.
    	<-t.parent.barrier // Wait for the parent test to complete.
    	t.context.waitParallel()
    
    	if t.chatty != nil {
    		t.chatty.Updatef(t.name, "=== CONT  %s\n", t.name)
    	}
    	running.Store(t.name, highPrecisionTimeNow())
    	t.start = highPrecisionTimeNow()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  2. src/testing/sub_test.go

    				done := make(chan bool)
    				go func() {
    					f()
    					done <- true
    				}()
    				return done
    			}
    			started := false
    			switch call.typ {
    			case add1:
    				signal := doCall(ctx.waitParallel)
    				select {
    				case <-signal:
    					started = true
    				case ctx.startParallel <- true:
    					<-signal
    				}
    			case done:
    				signal := doCall(ctx.release)
    				select {
    				case <-signal:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
Back to top