Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for doBench (0.61 sec)

  1. platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesIncrementalBuildIntegrationTest.groovy

            buildFile << """
    model {
        components {
            main {
                binaries.all {
                    // Use a compiler arg that will change the generated .res file
                    rcCompiler.args "-DFRENCH"
                }
            }
        }
    }
    """
            and:
            run "mainExecutable"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

    				}
    			}(pod, group)
    		}
    
    		var (
    			doneCh = make(chan struct{})
    			timer  = m.clock.NewTimer(time.Duration(group.ShutdownGracePeriodSeconds) * time.Second)
    		)
    		go func() {
    			defer close(doneCh)
    			wg.Wait()
    		}()
    
    		select {
    		case <-doneCh:
    			timer.Stop()
    		case <-timer.C():
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 08:02:40 UTC 2022
    - 15.5K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool-rebalance.go

    		return ps.Participating && ps.Info.Status == rebalStarted
    	}
    	return false
    }
    
    func (z *erasureServerPools) rebalanceBuckets(ctx context.Context, poolIdx int) (err error) {
    	doneCh := make(chan error, 1)
    	defer xioutil.SafeClose(doneCh)
    
    	// Save rebalance.bin periodically.
    	go func() {
    		// Update rebalance.bin periodically once every 5-10s, chosen randomly
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    	defer cancel()
    
    	expectedError := errors.New("Expected error")
    	var attempt int
    	f := ConditionFunc(func() (bool, error) {
    		attempt++
    		return false, expectedError
    	})
    
    	doneCh := make(chan struct{})
    	go func() {
    		defer close(doneCh)
    		if err := loopConditionUntilContext(ctx, timerWithClock(backoff.Timer(), fakeClock), false, true, f.WithContext()); err == nil || err != expectedError {
    			t.Errorf("unexpected error: %v", err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIntegrationTest.groovy

            buildFile << """
                model {
                    components {
                        main(NativeExecutableSpec) {
                            binaries.all {
                                ${helloWorldApp.compilerArgs("-DFRENCH")}
                            }
                        }
                    }
                }
            """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  6. internal/http/listener.go

    func (listener *httpListener) start() {
    	// Closure to send acceptResult to acceptCh.
    	// It returns true if the result is sent else false if returns when doneCh is closed.
    	send := func(result acceptResult) bool {
    		select {
    		case listener.acceptCh <- result:
    			// Successfully written to acceptCh
    			return true
    		case <-listener.ctx.Done():
    			return false
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go

    type signalInterceptingTestStep struct {
    	doneCh chan struct{}
    }
    
    func (ts signalInterceptingTestStep) done() <-chan struct{} {
    	return ts.doneCh
    }
    func (ts signalInterceptingTestStep) execute(fn func()) {
    	defer close(ts.doneCh)
    	fn()
    }
    func newSignalInterceptingTestStep() *signalInterceptingTestStep {
    	return &signalInterceptingTestStep{
    		doneCh: make(chan struct{}),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalBuildIntegrationTest.groovy

            when:
            buildFile << """
            model {
                components {
                    hello {
                        binaries.all {
                            ${helloWorldApp.compilerArgs("-DFRENCH")}
                        }
                    }
                }
            }
    """
    
            maybeWait()
            run "installMainExecutable"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    	// Start 3 outstanding requests and wait for the server to get them.
    	// Their responses will hang until we write to resch, though.
    	donech := make(chan bool)
    	doReq := func() {
    		defer func() {
    			select {
    			case <-stop:
    				return
    			case donech <- t.Failed():
    			}
    		}()
    		resp, err := c.Get(ts.URL)
    		if err != nil {
    			t.Error(err)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top