Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,460 for syncs (0.05 sec)

  1. src/internal/runtime/atomic/atomic_mipsx.s

    	MOVB	val+4(FP), R2
    	SYNC
    	MOVB	R2, 0(R1)
    	SYNC
    	RET
    
    TEXT ·Load(SB),NOSPLIT,$0-8
    	MOVW	ptr+0(FP), R1
    	SYNC
    	MOVW	0(R1), R1
    	SYNC
    	MOVW	R1, ret+4(FP)
    	RET
    
    TEXT ·Load8(SB),NOSPLIT,$0-5
    	MOVW	ptr+0(FP), R1
    	SYNC
    	MOVB	0(R1), R1
    	SYNC
    	MOVB	R1, ret+4(FP)
    	RET
    
    // uint32 Xadd(uint32 volatile *val, int32 delta)
    // Atomically:
    //	*val += delta;
    //	return *val;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/runtime/race_amd64.s

    	JMP	sync∕atomic·LoadInt32(SB)
    
    TEXT	sync∕atomic·LoadUint64(SB), NOSPLIT, $0-16
    	GO_ARGS
    	JMP	sync∕atomic·LoadInt64(SB)
    
    TEXT	sync∕atomic·LoadUintptr(SB), NOSPLIT, $0-16
    	GO_ARGS
    	JMP	sync∕atomic·LoadInt64(SB)
    
    TEXT	sync∕atomic·LoadPointer(SB), NOSPLIT, $0-16
    	GO_ARGS
    	JMP	sync∕atomic·LoadInt64(SB)
    
    // Store
    TEXT	sync∕atomic·StoreInt32(SB), NOSPLIT|NOFRAME, $0-12
    	GO_ARGS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. src/runtime/pprof/runtime_test.go

    		}
    
    		sync := make(chan struct{})
    		go func() {
    			wantLabels := map[string]string{"key1": "value1", "key2": "value2"}
    			if gotLabels := getProfLabel(); !reflect.DeepEqual(gotLabels, wantLabels) {
    				t.Errorf("child goroutine's profile labels: got %v, want %v", gotLabels, wantLabels)
    			}
    			sync <- struct{}{}
    		}()
    		<-sync
    
    	})
    
    	wantLabels = map[string]string{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 20:29:37 UTC 2017
    - 3K bytes
    - Viewed (0)
  4. src/runtime/race/testdata/waitgroup_test.go

    package race_test
    
    import (
    	"runtime"
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestNoRaceWaitGroup(t *testing.T) {
    	var x int
    	_ = x
    	var wg sync.WaitGroup
    	n := 1
    	for i := 0; i < n; i++ {
    		wg.Add(1)
    		j := i
    		go func() {
    			x = j
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    }
    
    func TestRaceWaitGroup(t *testing.T) {
    	var x int
    	_ = x
    	var wg sync.WaitGroup
    	n := 2
    	for i := 0; i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.3K bytes
    - Viewed (0)
  5. test/fixedbugs/issue27938.go

    // a qualified identifier with non-existing package.
    
    package p
    
    type _ struct {
    	F sync.Mutex // ERROR "undefined: sync|expected package|reference to undefined name"
    }
    
    type _ struct {
    	sync.Mutex // ERROR "undefined: sync|expected package|reference to undefined name"
    }
    
    type _ interface {
    	sync.Mutex // ERROR "undefined: sync|expected package|expected signature or type name|reference to undefined name"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 06 00:02:11 UTC 2022
    - 696 bytes
    - Viewed (0)
  6. src/runtime/race.go

    func abigen_sync_atomic_LoadUint64(addr *uint64) (val uint64)
    
    //go:linkname abigen_sync_atomic_LoadUintptr sync/atomic.LoadUintptr
    func abigen_sync_atomic_LoadUintptr(addr *uintptr) (val uintptr)
    
    //go:linkname abigen_sync_atomic_LoadPointer sync/atomic.LoadPointer
    func abigen_sync_atomic_LoadPointer(addr *unsafe.Pointer) (val unsafe.Pointer)
    
    //go:linkname abigen_sync_atomic_StoreInt32 sync/atomic.StoreInt32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/CancellationCrossVersionSpec.groovy

            def sync = server.expectAndBlock("registered")
            def resultHandler = new TestResultHandler()
    
            when:
            withConnection { ProjectConnection connection ->
                def build = connection.newBuild()
                build.forTasks(':sub:broken')
                build.withCancellationToken(cancel.token())
                build.run(resultHandler)
                sync.waitForAllPendingCalls(resultHandler)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  8. src/sync/oncefunc_test.go

    package sync_test
    
    import (
    	"bytes"
    	"math"
    	"runtime"
    	"runtime/debug"
    	"sync"
    	"sync/atomic"
    	"testing"
    	_ "unsafe"
    )
    
    // We assume that the Once.Do tests have already covered parallelism.
    
    func TestOnceFunc(t *testing.T) {
    	calls := 0
    	f := sync.OnceFunc(func() { calls++ })
    	allocs := testing.AllocsPerRun(10, f)
    	if calls != 1 {
    		t.Errorf("want calls==1, got %d", calls)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:31:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. api/go1.23.txt

    pkg sync/atomic, func OrInt64(*int64, int64) int64 #61395
    pkg sync/atomic, func OrUint32(*uint32, uint32) uint32 #61395
    pkg sync/atomic, func OrUint64(*uint64, uint64) uint64 #61395
    pkg sync/atomic, func OrUintptr(*uintptr, uintptr) uintptr #61395
    pkg sync/atomic, method (*Int32) And(int32) int32 #61395
    pkg sync/atomic, method (*Int32) Or(int32) int32 #61395
    pkg sync/atomic, method (*Int64) And(int64) int64 #61395
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. src/runtime/race/testdata/mutex_test.go

    }
    
    func TestRaceMutex(t *testing.T) {
    	var mu sync.Mutex
    	var x int16 = 0
    	_ = x
    	ch := make(chan bool, 2)
    	go func() {
    		x = 1
    		mu.Lock()
    		defer mu.Unlock()
    		ch <- true
    	}()
    	go func() {
    		x = 2
    		mu.Lock()
    		mu.Unlock()
    		ch <- true
    	}()
    	<-ch
    	<-ch
    }
    
    func TestRaceMutex2(t *testing.T) {
    	var mu1 sync.Mutex
    	var mu2 sync.Mutex
    	var x int8 = 0
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 23 22:14:38 UTC 2021
    - 2K bytes
    - Viewed (0)
Back to top