Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,029 for ATOMIC (0.16 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/atomic.go

    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:             "atomic",
    	Doc:              analysisutil.MustExtractDoc(doc, "atomic"),
    	URL:              "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/atomic",
    	Requires:         []*analysis.Analyzer{inspect.Analyzer},
    	RunDespiteErrors: true,
    	Run:              run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        outer:
        while (true) {
          AtomicLong atomic = map.get(key);
          if (atomic == null) {
            atomic = map.putIfAbsent(key, new AtomicLong(delta));
            if (atomic == null) {
              return delta;
            }
            // atomic is now non-null; fall through
          }
    
          while (true) {
            long oldValue = atomic.get();
            if (oldValue == 0L) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/func_test.go

    			pkg: `foo`,
    			sym: "Bar[go.shape.struct { sync/atomic._ sync/atomic.noCopy; sync/atomic._ sync/atomic.align64; sync/atomic.v uint64 }]",
    		},
    		{
    			in:  `example%2ecom.Bar[go.shape.struct { sync/atomic._ sync/atomic.noCopy; sync/atomic._ sync/atomic.align64; sync/atomic.v uint64 }]`,
    			pkg: `example%2ecom`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 13:56:32 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/runtime/atomic_pointer.go

    // to be able to intercept the sync/atomic forms but not the runtime forms.
    
    //go:linkname sync_atomic_StoreUintptr sync/atomic.StoreUintptr
    func sync_atomic_StoreUintptr(ptr *uintptr, new uintptr)
    
    //go:linkname sync_atomic_StorePointer sync/atomic.StorePointer
    //go:nosplit
    func sync_atomic_StorePointer(ptr *unsafe.Pointer, new unsafe.Pointer) {
    	if writeBarrier.enabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. cmd/bucket-replication-metrics.go

    func (p *ProxyMetric) add(p2 ProxyMetric) {
    	atomic.AddUint64(&p.GetTotal, p2.GetTotal)
    	atomic.AddUint64(&p.HeadTotal, p2.HeadTotal)
    	atomic.AddUint64(&p.GetTagTotal, p2.GetTagTotal)
    	atomic.AddUint64(&p.PutTagTotal, p2.PutTagTotal)
    	atomic.AddUint64(&p.RmvTagTotal, p2.RmvTagTotal)
    	atomic.AddUint64(&p.GetFailedTotal, p2.GetFailedTotal)
    	atomic.AddUint64(&p.HeadFailedTotal, p2.HeadFailedTotal)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. test/intrinsic_atomic.go

    package main
    
    import "sync/atomic"
    
    var x uint32
    
    func atomics() {
    	_ = atomic.LoadUint32(&x)             // ERROR "intrinsic substitution for LoadUint32"
    	atomic.StoreUint32(&x, 1)             // ERROR "intrinsic substitution for StoreUint32"
    	atomic.AddUint32(&x, 1)               // ERROR "intrinsic substitution for AddUint32"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 839 bytes
    - Viewed (0)
  7. src/internal/runtime/atomic/bench_test.go

    	x = 1
    	ptr := &x
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			atomic.Cas(ptr, 1, 0)
    			atomic.Cas(ptr, 0, 1)
    		}
    	})
    }
    
    func BenchmarkCas64(b *testing.B) {
    	var x uint64
    	x = 1
    	ptr := &x
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			atomic.Cas64(ptr, 1, 0)
    			atomic.Cas64(ptr, 0, 1)
    		}
    	})
    }
    func BenchmarkXchg(b *testing.B) {
    	var x uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/runtime/lock_futex.go

    }
    
    func mutexContended(l *mutex) bool {
    	return atomic.Load(key32(&l.key)) > mutex_locked
    }
    
    func lock(l *mutex) {
    	lockWithRank(l, getLockRank(l))
    }
    
    func lock2(l *mutex) {
    	gp := getg()
    
    	if gp.m.locks < 0 {
    		throw("runtime·lock: lock count")
    	}
    	gp.m.locks++
    
    	// Speculative grab for lock.
    	v := atomic.Xchg(key32(&l.key), mutex_locked)
    	if v == mutex_unlocked {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. test/fixedbugs/issue19182.go

    package main
    
    import (
    	"fmt"
    	"runtime"
    	"sync/atomic"
    	"time"
    )
    
    var a uint64 = 0
    
    func main() {
    	runtime.GOMAXPROCS(2) // With just 1, infinite loop never yields
    
    	go func() {
    		for {
    			atomic.AddUint64(&a, uint64(1))
    		}
    	}()
    
    	time.Sleep(10 * time.Millisecond) // Short sleep is enough in passing case
    	i, val := 0, atomic.LoadUint64(&a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 737 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/cover_sync_atomic_import.txt

    go test -short -cover -covermode=atomic -coverpkg=coverdep/p1 coverdep
    
    # In addition to the above, test to make sure there is no funny
    # business if we try "go test -cover" in atomic mode targeting
    # sync/atomic itself (see #57445). Just a short test run is needed
    # since we're mainly interested in making sure the test builds and can
    # execute at least one test.
    
    go test -short -covermode=atomic -run=TestStoreInt64 sync/atomic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 00:18:30 UTC 2024
    - 1011 bytes
    - Viewed (0)
Back to top