- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,197 for ATOMIC (0.18 sec)
-
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) -
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) -
src/cmd/compile/internal/ir/func_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 13:56:32 UTC 2023 - 2.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/doc.go
// Package atomic defines an Analyzer that checks for common mistakes // using the sync/atomic package. // // # Analyzer atomic // // atomic: check for common mistakes using the sync/atomic package // // The atomic checker looks for assignment statements of the form: // // x = atomic.AddUint64(&x, 1) // // which are not atomic.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 505 bytes - Viewed (0) -
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) -
src/runtime/race/race_linux_test.go
a := (*uint64)(unsafe.Pointer(&mem[0])) if *a != 0 { t.Fatalf("bad atomic value: %v, want 0", *a) } atomic.AddUint64(a, 1) if *a != 1 { t.Fatalf("bad atomic value: %v, want 1", *a) } atomic.AddUint64(a, 1) if *a != 2 { t.Fatalf("bad atomic value: %v, want 2", *a) } } func TestAtomicPageBoundary(t *testing.T) { // Test that atomic access near (but not cross) a page boundary // doesn't fault. See issue 60825.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 16 14:09:02 UTC 2023 - 1.9K bytes - Viewed (0)