- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 330 for Loops (0.38 sec)
-
pkg/scheduler/metrics/metric_recorder_test.go
} func TestInc(t *testing.T) { fakeRecorder := fakePodsRecorder{} var wg sync.WaitGroup loops := 100 wg.Add(loops) for i := 0; i < loops; i++ { go func() { fakeRecorder.Inc() wg.Done() }() } wg.Wait() if fakeRecorder.counter != int64(loops) { t.Errorf("Expected %v, got %v", loops, fakeRecorder.counter) } } func TestDec(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 00:51:07 UTC 2019 - 2.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/looprotate.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssa // loopRotate converts loops with a check-loop-condition-at-beginning // to loops with a check-loop-condition-at-end. // This helps loops avoid extra unnecessary jumps. // // loop: // CMPQ ... // JGE exit // ... // JMP loop // exit: // // JMP entry // loop: // ...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/likelyadjust.go
} } return false } type loopnest struct { f *Func b2l []*loop po []*Block sdom SparseTree loops []*loop hasIrreducible bool // TODO current treatment of irreducible loops is very flaky, if accurate loops are needed, must punt at function level. // Record which of the lazily initialized fields have actually been initialized.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 15.4K bytes - Viewed (0) -
pkg/api/service/warnings_test.go
}, }, { name: "Dual Stack IPv4-IPv6 and IPv6 non-canonical format", service: service([]string{"192.12.2.2", "2001:db8:0:0::2"}), want: []string{ `spec.clusterIPs[1]: IPv6 address "2001:db8:0:0::2" is not in RFC 5952 canonical format ("2001:db8::2"), which may cause controller apply-loops`, }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 26 22:57:57 UTC 2023 - 10.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/change_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 13:59:03 UTC 2024 - 5.2K bytes - Viewed (0) -
test/fixedbugs/issue33903.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Check that the shortcircuit pass correctly handles infinite loops. package p func f() { var p, q bool for { p = p && q }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 29 17:41:49 UTC 2019 - 305 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/backoff.go
} return (&backoffManager{ backoff: b, initialBackoff: b, resetInterval: resetInterval, clock: c, lastStart: c.Now(), timer: nil, }).Step } // Until loops until stop channel is closed, running f every period. // // Until is syntactic sugar on top of JitterUntil with zero jitter factor and // with sliding = true (which means the timer for period starts after the f // completes).
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 19:14:11 UTC 2023 - 16.5K bytes - Viewed (0) -
src/sync/mutex_test.go
package sync_test import ( "fmt" "internal/testenv" "os" "os/exec" "runtime" "strings" . "sync" "testing" "time" ) func HammerSemaphore(s *uint32, loops int, cdone chan bool) { for i := 0; i < loops; i++ { Runtime_Semacquire(s) Runtime_Semrelease(s, false, 0) } cdone <- true } func TestSemaphore(t *testing.T) { s := new(uint32) *s = 1 c := make(chan bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 16 21:25:35 UTC 2022 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/GraphConstants.java
+ "that allows parallel edges, call allowsParallelEdges(true) on the Builder."; static final String SELF_LOOPS_NOT_ALLOWED = "Cannot add self-loop edge on node %s, as self-loops are not allowed. To construct a graph " + "that allows self-loops, call allowsSelfLoops(true) on the Builder."; static final String NOT_AVAILABLE_ON_UNDIRECTED = "Cannot call source()/target() on a EndpointPair from an undirected graph. Consider calling "
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 3.1K bytes - Viewed (0) -
test/initloop.go
// errorcheck // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Verify that initialization loops are caught // and that the errors print correctly. package main var ( x int = a a int = b // ERROR "a refers to\n.*b refers to\n.*c refers to\n.*a|initialization loop" b int = c c int = a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 23:56:19 UTC 2020 - 407 bytes - Viewed (0)