Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 2,460 for syncs (0.12 sec)

  1. 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)
  2. test/fixedbugs/issue5493.go

    // run
    
    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"runtime"
    	"sync"
    	"sync/atomic"
    	"time"
    )
    
    const N = 10
    
    var count int64
    
    func run() error {
    	f1 := func() {}
    	f2 := func() {
    		func() {
    			f1()
    		}()
    	}
    	runtime.SetFinalizer(&f1, func(f *func()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 05 21:11:31 UTC 2021
    - 953 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. test/fixedbugs/bug512.go

    // license that can be found in the LICENSE file.
    
    // Gccgo did not make a copy of a value receiver when using a
    // goroutine to call a method.
    
    package main
    
    import (
    	"sync"
    	"sync/atomic"
    )
    
    var wg sync.WaitGroup
    
    type S struct {
    	i1, i2 int32
    }
    
    var done int32
    
    func (s S) Check(v1, v2 int32) {
    	for {
    		if g1 := atomic.LoadInt32(&s.i1); v1 != g1 {
    			panic(g1)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 17 19:15:18 UTC 2021
    - 793 bytes
    - Viewed (0)
  5. pkg/kubelet/config/apiserver.go

    	// the node sync with the apiserver has completed.
    	klog.InfoS("Waiting for node sync before watching apiserver pods")
    	go func() {
    		for {
    			if nodeHasSynced() {
    				klog.V(4).InfoS("node sync completed")
    				break
    			}
    			time.Sleep(WaitForAPIServerSyncPeriod)
    			klog.V(4).InfoS("node sync has not completed yet")
    		}
    		klog.InfoS("Watching apiserver")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 21 19:46:27 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/go/testdata/script/work_sync_sum.txt

    # Test that the sum file data state is properly reset between modules in
    # go work sync so that the sum file that's written is correct.
    # Exercises the fix to #50038.
    
    cp b/go.sum b/go.sum.want
    
    # As a sanity check, verify b/go.sum is tidy.
    cd b
    go mod tidy
    cd ..
    cmp b/go.sum b/go.sum.want
    
    # Run go work sync and verify it doesn't change b/go.sum.
    go work sync
    cmp b/go.sum b/go.sum.want
    
    -- b/go.sum --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 19:25:50 UTC 2022
    - 864 bytes
    - Viewed (1)
  8. 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)
  9. test/fixedbugs/issue9110.go

    		time.Sleep(1 * time.Millisecond)
    
    		// pick up top sudog
    		var cond1 sync.Cond
    		var mu1 sync.Mutex
    		cond1.L = &mu1
    		go func() {
    			mu1.Lock()
    			cond1.Wait()
    			mu1.Unlock()
    		}()
    		time.Sleep(1 * time.Millisecond)
    
    		// pick up next sudog
    		var cond2 sync.Cond
    		var mu2 sync.Mutex
    		cond2.L = &mu2
    		go func() {
    			mu2.Lock()
    			cond2.Wait()
    			mu2.Unlock()
    		}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.7K bytes
    - Viewed (0)
  10. 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)
Back to top