- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,357 for atomics (0.35 sec)
-
internal/logger/target/http/http.go
func (h *Target) IsOnline(ctx context.Context) bool { return atomic.LoadInt32(&h.status) == statusOnline } // Stats returns the target statistics. func (h *Target) Stats() types.TargetStats { h.logChMu.RLock() queueLength := len(h.logCh) h.logChMu.RUnlock() stats := types.TargetStats{ TotalMessages: atomic.LoadInt64(&h.totalMessages), FailedMessages: atomic.LoadInt64(&h.failedMessages), QueueLength: queueLength,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jun 02 03:03:39 UTC 2024 - 14.9K bytes - Viewed (0) -
src/runtime/debug_test.go
runtime.LockOSThread() defer runtime.UnlockOSThread() *gpp = runtime.Getg() for atomic.LoadUint32(stop) == 0 { atomic.StoreUint32(ready, 1) } } func TestDebugCallUnsafePoint(t *testing.T) { skipUnderDebugger(t) // This can deadlock if there aren't enough threads or if a GC // tries to interrupt an atomic loop (see issue #10958). defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(8))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 15:08:04 UTC 2023 - 8K bytes - Viewed (0) -
test/fixedbugs/issue20335.go
// This test should fail on the ssacheck builder // without the fix in the CL that added this file. // TODO: check the generated assembly? package a import "sync/atomic" func f(p, q *int32) bool { x := *q return atomic.AddInt32(p, 1) == x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 11 22:16:08 UTC 2017 - 467 bytes - Viewed (0) -
src/cmd/go/internal/par/work_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package par import ( "sync/atomic" "testing" "time" ) func TestWork(t *testing.T) { var w Work[int] const N = 10000 n := int32(0) w.Add(N) w.Do(100, func(i int) { atomic.AddInt32(&n, 1) if i >= 2 { w.Add(i - 1) w.Add(i - 2) } w.Add(i >> 1) w.Add((i >> 1) ^ 1) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 03 09:56:24 UTC 2023 - 1.5K bytes - Viewed (0) -
src/internal/coverage/cfile/apis.go
// allowed to reorder stores and decides to issue the XYZ store // before the prolog stores, this could be observable as an // inconsistency similar to the one above. Hence the requirement // for atomic counter mode: according to package atomic docs, // "...operations that happen in a specific order on one thread, // will always be observed to happen in exactly that order by // another thread". Thus we can be sure that there will be no
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 5.4K bytes - Viewed (0) -
pkg/scheduler/metrics/metric_recorder_test.go
package metrics import ( "sync" "sync/atomic" "testing" ) var _ MetricRecorder = &fakePodsRecorder{} type fakePodsRecorder struct { counter int64 } func (r *fakePodsRecorder) Inc() { atomic.AddInt64(&r.counter, 1) } func (r *fakePodsRecorder) Dec() { atomic.AddInt64(&r.counter, -1) } func (r *fakePodsRecorder) Clear() { atomic.StoreInt64(&r.counter, 0) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 00:51:07 UTC 2019 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/api/rbac/v1beta1/generated.proto
// +listType=atomic repeated string verbs = 1; // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of // the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. // +optional // +listType=atomic repeated string apiGroups = 2;
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 8.8K bytes - Viewed (0) -
staging/src/k8s.io/api/rbac/v1alpha1/generated.proto
// +listType=atomic repeated string verbs = 1; // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of // the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups. // +optional // +listType=atomic repeated string apiGroups = 3;
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 8.8K bytes - Viewed (0) -
src/runtime/align_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 5.4K bytes - Viewed (0) -
cmd/bucket-replication-stats.go
defer r.qCache.Unlock() v, ok := r.qCache.bucketStats[bucket] if !ok { v = newInQueueStats(r.registry, bucket) } atomic.AddInt64(&v.nowBytes, sz) atomic.AddInt64(&v.nowCount, 1) r.qCache.bucketStats[bucket] = v atomic.AddInt64(&r.qCache.srQueueStats.nowBytes, sz) atomic.AddInt64(&r.qCache.srQueueStats.nowCount, 1) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 13.4K bytes - Viewed (0)