- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for Decrement (0.4 sec)
-
src/sync/example_test.go
var urls = []string{ "http://www.golang.org/", "http://www.google.com/", "http://www.example.com/", } for _, url := range urls { // Increment the WaitGroup counter. wg.Add(1) // Launch a goroutine to fetch the URL. go func(url string) { // Decrement the counter when the goroutine completes. defer wg.Done() // Fetch the URL. http.Get(url) }(url) } // Wait for all HTTP fetches to complete.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 23 17:45:47 UTC 2024 - 2.2K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaCompoundAccess.kt
public enum class Kind { PLUS_ASSIGN, MINUS_ASSIGN, TIMES_ASSIGN, DIV_ASSIGN, REM_ASSIGN } } /** * A compound access that read, increment or decrement, and write the computed value back. */ public class IncOrDecOperation( operationPartiallyAppliedSymbol: KaPartiallyAppliedFunctionSymbol<KaFunctionSymbol>, kind: Kind,
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 05 16:16:39 UTC 2024 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java
abstract void compareAndSetSeenExceptions( AggregateFutureState<?> state, @CheckForNull Set<Throwable> expect, Set<Throwable> update); /** Atomic decrement-and-get of the {@link AggregateFutureState#remaining} field. */ abstract int decrementAndGetRemainingCount(AggregateFutureState<?> state); } private static final class SafeAtomicHelper extends AtomicHelper {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 20:40:51 UTC 2024 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AggregateFutureState.java
abstract void compareAndSetSeenExceptions( AggregateFutureState<?> state, @CheckForNull Set<Throwable> expect, Set<Throwable> update); /** Atomic decrement-and-get of the {@link AggregateFutureState#remaining} field. */ abstract int decrementAndGetRemainingCount(AggregateFutureState<?> state); } private static final class SafeAtomicHelper extends AtomicHelper {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 20:40:51 UTC 2024 - 8.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt
val relay = edit(file, upstream, metadata, 1024) val source1 = relay.newSource() val source2 = relay.newSource() source1!!.close() source1.close() // Unnecessary. Shouldn't decrement the reference count. assertThat(relay.isClosed).isFalse() source2!!.close() assertThat(relay.isClosed).isTrue() assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null) } @Test
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 8.1K bytes - Viewed (0) -
src/sync/poolqueue.go
var slot *eface for { ptrs := d.headTail.Load() head, tail := d.unpack(ptrs) if tail == head { // Queue is empty. return nil, false } // Confirm tail and decrement head. We do this before // reading the value to take back ownership of this // slot. head-- ptrs2 := d.pack(head, tail) if d.headTail.CompareAndSwap(ptrs, ptrs2) { // We successfully took back slot.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 18:12:29 UTC 2024 - 8.3K bytes - Viewed (0) -
cmd/kubeadm/app/util/version.go
// including the offset e.g. `alpha.0.206`. This is done to comply with GCR image tags. pre := v.PreRelease() patch := v.Patch() if len(pre) > 0 { if patch > 0 { // If the patch version is more than zero, decrement it and remove the label. // this is done to comply with the latest stable patch release. patch = patch - 1 pre = "" } else { split := strings.Split(pre, ".") if len(split) > 2 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 10:50:19 UTC 2024 - 9.5K bytes - Viewed (0) -
src/sync/waitgroup.go
if race.Enabled { if delta < 0 { // Synchronize decrements with Wait. race.ReleaseMerge(unsafe.Pointer(wg)) } race.Disable() defer race.Enable() } state := wg.state.Add(uint64(delta) << 32) v := int32(state >> 32) w := uint32(state) if race.Enabled && delta > 0 && v == int32(delta) { // The first increment must be synchronized with Wait. // Need to model this as a read, because there can be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 4K bytes - Viewed (0) -
pkg/xds/monitoring.go
totalXDSRejects.With(typeTag.Value(model.GetMetricType(xdsType))).Increment() switch xdsType { case model.ListenerType: ldsReject.With(nodeTag.Value(node), errTag.Value(errCode)).Increment() case model.ClusterType: cdsReject.With(nodeTag.Value(node), errTag.Value(errCode)).Increment() case model.EndpointType: edsReject.With(nodeTag.Value(node), errTag.Value(errCode)).Increment() case model.RouteType:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 2.9K bytes - Viewed (0) -
pilot/pkg/xds/monitoring.go
// TODO use a single metric with a type tag switch xdsType { case v3.ListenerType: ldsSendErrPushes.Increment() case v3.ClusterType: cdsSendErrPushes.Increment() case v3.EndpointType: edsSendErrPushes.Increment() case v3.RouteType: rdsSendErrPushes.Increment() } return true } return false } func recordPushTime(xdsType string, duration time.Duration) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 6.7K bytes - Viewed (0)