- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,309 for ATOMIC (0.12 sec)
-
src/cmd/vet/testdata/atomic/atomic.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains tests for the atomic checker. package atomic import "sync/atomic" func AtomicTests() { x := uint64(1) x = atomic.AddUint64(&x, 1) // ERROR "direct assignment to atomic value"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 364 bytes - Viewed (0) -
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) -
src/runtime/race/testdata/atomic_test.go
go func() { x1 = 1 if atomic.AddInt32(&s, 1) == 2 { x2 = 1 } ch <- true }() go func() { x2 = 1 if atomic.AddInt32(&s, 1) == 2 { x1 = 1 } ch <- true }() <-ch <-ch } func TestNoRaceAtomicLoadAddInt32(t *testing.T) { var x int64 _ = x var s int32 go func() { x = 2 atomic.AddInt32(&s, 1) }() for atomic.LoadInt32(&s) != 1 { runtime.Gosched()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 16 17:26:46 UTC 2020 - 4.9K bytes - Viewed (0) -
test/fixedbugs/issue24449.go
} if len(a) <= len(b) { atomic.AddInt32(&cnt32, 16) } return atomic.LoadInt32(&cnt32) == 31 } var cnt64 int64 //go:noinline func test64(a, b []int) bool { // Try to generate flag value, issue atomic // adds and then re-use the flag value to see if // the atomic add has clobbered them. atomic.AddInt64(&cnt64, 1) if len(a) == len(b) { atomic.AddInt64(&cnt64, 2) } atomic.AddInt64(&cnt64, 4)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 20 09:44:50 UTC 2018 - 1.2K 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)