Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for doBench (0.13 sec)

  1. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/GccToolChainCustomisationIntegrationTest.groovy

            buildFile << """
    model {
        toolChains {
            ${toolChain.id} {
                target("arm"){
                    cCompiler.withArguments { args ->
                        args << "-m32"
                        args << "-DFRENCH"
                    }
                    linker.withArguments { args ->
                        args << "-m32"
                    }
                }
                target("sparc")
            }
        }
        platforms {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. pkg/config/mesh/watcher_test.go

    	w := newWatcher(t, path, multi)
    	assert.Equal(t, w.Mesh(), m)
    
    	doneCh := make(chan struct{}, 1)
    
    	var newM *meshconfig.MeshConfig
    	w.AddMeshHandler(func() {
    		newM = w.Mesh()
    		close(doneCh)
    	})
    
    	// Change the file to trigger the update.
    	m.IngressClass = "foo"
    	writeMessage(t, path, m)
    
    	select {
    	case <-doneCh:
    		assert.Equal(t, newM, m)
    		assert.Equal(t, w.Mesh(), newM)
    		break
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. pkg/config/mesh/networks_watcher_test.go

    	g.Expect(w.Networks()).To(Equal(&n))
    
    	doneCh := make(chan struct{}, 1)
    
    	var newN *meshconfig.MeshNetworks
    	w.AddNetworksHandler(func() {
    		newN = w.Networks()
    		close(doneCh)
    	})
    
    	// Change the file to trigger the update.
    	n.Networks["test"] = &meshconfig.Network{}
    	writeMessage(t, path, &n)
    
    	select {
    	case <-doneCh:
    		g.Expect(newN).To(Equal(&n))
    		g.Expect(w.Networks()).To(Equal(newN))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. internal/s3select/message.go

    func (writer *messageWriter) Finish(bytesScanned, bytesProcessed int64) error {
    	select {
    	case <-writer.doneCh:
    		return fmt.Errorf("messageWriter is done")
    	default:
    		writer.finBytesScanned = bytesScanned
    		writer.finBytesProcessed = bytesProcessed
    		close(writer.payloadCh)
    		// Wait until the `start` go-routine is done.
    		<-writer.doneCh
    		return nil
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 30 15:26:43 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  5. internal/grid/stream.go

    		}
    
    		if !done {
    			// Drain channel.
    			for range s.responses {
    			}
    		}
    	}()
    	doneCh := s.ctx.Done()
    	for {
    		select {
    		case <-doneCh:
    			if err := context.Cause(s.ctx); !errors.Is(err, errStreamEOF) {
    				return err
    			}
    			// Fall through to be sure we have returned all responses.
    			doneCh = nil
    		case resp, ok := <-s.responses:
    			if !ok {
    				done = true
    				return nil
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    				}
    				return
    			}
    		}
    	}()
    	return func(err error) {
    		if doneCh == nil {
    			return
    		}
    
    		// Indicate we are ready to write.
    		doneCh <- err
    
    		// Wait for channel to be closed so we don't race on writes.
    		<-doneCh
    
    		// Clear so we can be called multiple times without crashing.
    		doneCh = nil
    	}, &closeNotifier{rc: r.Body, done: bodyDoneCh}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  7. cmd/consolelogger.go

    			entry := lastN[(cnt+i)%last]
    			if (entry == log.Info{}) {
    				continue
    			}
    			select {
    			case subCh <- entry:
    			case <-doneCh:
    				return nil
    			}
    		}
    	}
    	return sys.pubsub.Subscribe(madmin.LogMaskAll, subCh, doneCh, filter)
    }
    
    // Init if HTTPConsoleLoggerSys is valid, always returns nil right now
    func (sys *HTTPConsoleLoggerSys) Init(_ context.Context) error {
    	return nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/wait/loop.go

    func loopConditionUntilContext(ctx context.Context, t Timer, immediate, sliding bool, condition ConditionWithContextFunc) error {
    	defer t.Stop()
    
    	var timeCh <-chan time.Time
    	doneCh := ctx.Done()
    
    	if !sliding {
    		timeCh = t.C()
    	}
    
    	// if immediate is true the condition is
    	// guaranteed to be executed at least once,
    	// if we haven't requested immediate execution, delay once
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:47:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/CommonToolchainCustomizationIntegTest.groovy

    apply plugin: 'cpp'
    
    model {
        toolChains {
            ${toolChain.id} {
                eachPlatform {
                    cppCompiler.withArguments { args ->
                        Collections.replaceAll(args, "CUSTOM", "-DFRENCH")
                    }
                    linker.withArguments { args ->
                        args.remove "CUSTOM"
                    }
                }
            }
        }
        components {
            main(NativeExecutableSpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    // but rather leaves that up to other actors (e.g., Run).
    func (fec *Fake) Sleep(duration time.Duration) {
    	doneCh := make(chan struct{})
    	fec.EventAfterDuration(func(time.Time) {
    		fec.clientWG.Add(1)
    		close(doneCh)
    	}, duration)
    	fec.clientWG.Add(-1)
    	<-doneCh
    }
    
    // EventAfterDuration schedules the given function to be invoked once
    // the given duration has passed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
Back to top