Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 2,460 for syncs (0.07 sec)

  1. pkg/proxy/ipvs/ipset_test.go

    		expectedEntries []string
    	}{
    		{
    			name: "normal ipset sync",
    			set: &utilipset.IPSet{
    				Name: "foo",
    			},
    			setType:         utilipset.HashIPPort,
    			ipv6:            false,
    			activeEntries:   []string{"172.17.0.4,tcp:80"},
    			currentEntries:  nil,
    			expectedEntries: []string{"172.17.0.4,tcp:80"},
    		},
    		{
    			name: "ipset IPv6 sync with no new entries",
    			set: &utilipset.IPSet{
    				Name: "abz",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt

    go list -deps -test -compiled -f '{{if eq .ImportPath "net [runtime.test]"}}{{printf "%q" .Imports}}{{end}}' runtime
    
    	# Control case: the explicitly-imported package "sync" is a test variant,
    	# because "sync" depends on "runtime".
    stdout '"sync \[runtime\.test\]"'
    ! stdout '"sync"'
    
    	# Experiment: the implicitly-imported package "runtime/cgo" is also a test variant,
    	# because "runtime/cgo" also depends on "runtime".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 22:26:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. test/assign.go

    // Does not compile.
    
    package main
    
    import "sync"
    
    type T struct {
    	int
    	sync.Mutex
    }
    
    func main() {
    	{
    		var x, y sync.Mutex
    		x = y // ok
    		_ = x
    	}
    	{
    		var x, y T
    		x = y // ok
    		_ = x
    	}
    	{
    		var x, y [2]sync.Mutex
    		x = y // ok
    		_ = x
    	}
    	{
    		var x, y [2]T
    		x = y // ok
    		_ = x
    	}
    	{
    		x := sync.Mutex{0, 0} // ERROR "assignment.*Mutex"
    		_ = x
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 20:13:36 UTC 2020
    - 1K bytes
    - Viewed (0)
  4. api/go1.19.txt

    pkg sync/atomic, method (*Uintptr) Load() uintptr #50860
    pkg sync/atomic, method (*Uintptr) Store(uintptr) #50860
    pkg sync/atomic, method (*Uintptr) Swap(uintptr) uintptr #50860
    pkg sync/atomic, type Bool struct #50860
    pkg sync/atomic, type Int32 struct #50860
    pkg sync/atomic, type Int64 struct #50860
    pkg sync/atomic, type Pointer[$0 interface{}] struct #50860
    pkg sync/atomic, type Uint32 struct #50860
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  5. src/internal/pkgbits/decoder.go

    	e := r.Relocs[idx]
    	assert(e.Kind == k)
    	return e.Idx
    }
    
    // Sync decodes a sync marker from the element bitstream and asserts
    // that it matches the expected marker.
    //
    // If EnableSync is false, then Sync is a no-op.
    func (r *Decoder) Sync(mWant SyncMarker) {
    	if !r.common.sync {
    		return
    	}
    
    	pos, _ := r.Data.Seek(0, io.SeekCurrent)
    	mHave := SyncMarker(r.rawUvarint())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 20:58:46 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/testx.c

    void lockOSThreadC(void) {
    	lockOSThreadCallback();
    }
    
    void issue7978c(uint32_t *sync) {
    	while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 0)
    		;
    	__atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST);
    	while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 2)
    		;
    	issue7978cb();
    	__atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST);
    	while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 6)
    		;
    }
    
    void f7665(void) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 582 bytes
    - Viewed (0)
  7. src/runtime/race/testdata/rwmutex_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package race_test
    
    import (
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestRaceMutexRWMutex(t *testing.T) {
    	var mu1 sync.Mutex
    	var mu2 sync.RWMutex
    	var x int16 = 0
    	_ = x
    	ch := make(chan bool, 2)
    	go func() {
    		mu1.Lock()
    		defer mu1.Unlock()
    		x = 1
    		ch <- true
    	}()
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  8. schema/pool.go

    package schema
    
    import (
    	"reflect"
    	"sync"
    )
    
    // sync pools
    var (
    	normalPool      sync.Map
    	poolInitializer = func(reflectType reflect.Type) FieldNewValuePool {
    		v, _ := normalPool.LoadOrStore(reflectType, &sync.Pool{
    			New: func() interface{} {
    				return reflect.New(reflectType).Interface()
    			},
    		})
    		return v.(FieldNewValuePool)
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 11 13:37:44 UTC 2022
    - 345 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/work_sync_missing_module.txt

    # Ensure go work sync works without any modules in go.work.
    go work sync
    
    # Ensure go work sync works even without a go.mod file.
    rm go.mod
    go work sync
    
    -- go.work --
    go 1.18
    -- go.mod --
    go 1.18
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 22 15:54:11 UTC 2021
    - 208 bytes
    - Viewed (0)
  10. src/sync/map_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package sync_test
    
    import (
    	"internal/testenv"
    	"math/rand"
    	"reflect"
    	"runtime"
    	"sync"
    	"sync/atomic"
    	"testing"
    	"testing/quick"
    )
    
    type mapOp string
    
    const (
    	opLoad             = mapOp("Load")
    	opStore            = mapOp("Store")
    	opLoadOrStore      = mapOp("LoadOrStore")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top