Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 978 for syncs (0.06 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/ClientShutdownCrossVersionSpec.groovy

    task slow { doLast { ${server.callFromBuild('sync')} } }
    """
            def sync = server.expectAndBlock('sync')
            withConnection { connection ->
                connection.model(GradleBuild).setJvmArguments(buildJvmArguments).get()
            }
            toolingApi.daemons.daemon.assertIdle()
    
            def build = daemonExecutor().withTasks("slow").start()
            sync.waitForAllPendingCalls()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/cmd/trace/testdata/testprog/main.go

    package main
    
    import (
    	"fmt"
    	"log"
    	"net"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    	"syscall"
    	"time"
    )
    
    func main() {
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatal(err)
    	}
    
    	// checkExecutionTimes relies on this.
    	var wg sync.WaitGroup
    	wg.Add(2)
    	go cpu10(&wg)
    	go cpu20(&wg)
    	wg.Wait()
    
    	// checkHeapMetrics relies on this.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. pkg/test/framework/integration/framework_test.go

    )
    
    func TestSynchronous(t *testing.T) {
    	// Root is always run sync.
    	newLevels().
    		// Level 1: bf=5(sync)
    		Add(5, false).
    		// Level 2: bf=2(sync)
    		Add(2, false).
    		// Level 3: bf=2(sync)
    		Add(2, false).
    		Build().
    		Run(t)
    }
    
    func TestParallel(t *testing.T) {
    	// Root is always run sync.
    	newLevels().
    		// Level 1: bf=20(parallel)
    		Add(20, true).
    		// Level 2: bf=5(parallel)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. internal/once/init.go

    package once
    
    import (
    	"context"
    	"sync"
    	"sync/atomic"
    )
    
    // Inspired from Golang sync.Once but it is only marked
    // initialized when the provided function returns nil.
    
    // Init represents the structure.
    type Init struct {
    	done uint32
    	m    sync.Mutex
    }
    
    // Do is similar to sync.Once.Do - makes one successful
    // call to the function. ie, it invokes the function
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 09 04:20:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. internal/config/lambda/target/lazyinit.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package target
    
    import (
    	"sync"
    	"sync/atomic"
    )
    
    // Inspired from Golang sync.Once but it is only marked
    // initialized when the provided function returns nil.
    
    type lazyInit struct {
    	done uint32
    	m    sync.Mutex
    }
    
    func (l *lazyInit) Do(f func() error) error {
    	if atomic.LoadUint32(&l.done) == 0 {
    		return l.doSlow(f)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. cmd/kube-controller-manager/app/options/attachdetachcontroller.go

    	}
    
    	fs.BoolVar(&o.DisableAttachDetachReconcilerSync, "disable-attach-detach-reconcile-sync", false, "Disable volume attach detach reconciler sync. Disabling this may cause volumes to be mismatched with pods. Use wisely.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 18:31:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/authorizationconfig/metrics/metrics.go

    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"status", "apiserver_id_hash"},
    	)
    )
    
    var registerMetrics sync.Once
    var hashPool *sync.Pool
    
    func RegisterMetrics() {
    	registerMetrics.Do(func() {
    		hashPool = &sync.Pool{
    			New: func() interface{} {
    				return sha256.New()
    			},
    		}
    		legacyregistry.MustRegister(authorizationConfigAutomaticReloadsTotal)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. pkg/controller/nodeipam/ipam/sync/sync_test.go

    		cidr, _ := cidrset.NewCIDRSet(clusterCIDRRange, 24)
    		tc.fake.logger = logger
    		sync := New(&tc.fake, &tc.fake, &tc.fake, tc.mode, "node1", cidr)
    		doneChan := make(chan struct{})
    
    		// Do a single step of the loop.
    		go sync.Loop(logger, doneChan)
    		sync.Update(tc.node)
    		close(sync.opChan)
    		<-doneChan
    		tc.fake.dumpTrace()
    
    		if !reflect.DeepEqual(tc.fake.events, tc.events) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TestProgressDaemonErrorsCrossVersionSpec.groovy

            given:
            goodCode()
            def sync = server.expectAndBlock('sync')
    
            when:
            def result = []
            withConnection { ProjectConnection connection ->
                connection.newBuild().forTasks('test').addProgressListener({ ProgressEvent event ->
                    result << event
                    if (!killed) {
                        sync.waitForAllPendingCalls()
                        sync.releaseAll()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ContinuousBuildCancellationCrossVersionSpec.groovy

        def "client can cancel during execution of a continuous build"() {
            given:
            setupCancellationBuild()
            def sync = server.expectAndBlock('sync')
    
            when:
            runBuild {
                sync.waitForAllPendingCalls()
                cancellationTokenSource.cancel()
                sync.releaseAll()
            }
    
            then:
            assert buildResult.failure instanceof BuildCancelledException
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top