Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,298 for nextId (0.15 sec)

  1. platforms/core-runtime/build-operations/src/main/java/org/gradle/internal/operations/DefaultBuildOperationIdFactory.java

    public class DefaultBuildOperationIdFactory implements BuildOperationIdFactory {
        public static final long ROOT_BUILD_OPERATION_ID_VALUE = 1L;
    
        private final AtomicLong nextId = new AtomicLong(ROOT_BUILD_OPERATION_ID_VALUE);
    
        @Override
        public long nextId() {
            return nextId.getAndIncrement();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 14:19:43 UTC 2023
    - 1K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/id/LongIdGenerator.java

    package org.gradle.internal.id;
    
    import java.util.concurrent.atomic.AtomicLong;
    
    public class LongIdGenerator implements IdGenerator<Long> {
        private final AtomicLong nextId = new AtomicLong(1);
    
        @Override
        public Long generateId() {
            return nextId.getAndIncrement();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 910 bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/ComponentIdGenerator.java

    @ServiceScope(Scope.BuildTree.class)
    public class ComponentIdGenerator {
        private final AtomicLong nextId = new AtomicLong();
    
        public long nextComponentId() {
            return nextId.getAndIncrement();
        }
    
        public long nextVariantId() {
            return nextId.getAndIncrement();
        }
    
        public long nextGraphNodeId() {
            return nextId.getAndIncrement();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/ResolvedArtifactsGraphVisitor.java

            ) {
                int id = nextId++;
                return new ArtifactsForNode(id, new VariantResolvingArtifactSet(variantResolver, component, variant, dependency, graphVariantSelector, consumerSchema));
            }
    
            return artifactsByNodeId.computeIfAbsent(toNode.getNodeId(), (LongFunction<ArtifactsForNode>) value -> {
                int id = nextId++;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 02:21:08 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. src/go/types/typeparam.go

    }
    
    // check may be nil
    func (check *Checker) newTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	// Always increment lastID, even if it is not used.
    	id := nextID()
    	if check != nil {
    		check.nextID++
    		id = check.nextID
    	}
    	typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: constraint}
    	if obj.typ == nil {
    		obj.typ = typ
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      }
    
      @JvmStatic
      fun threadFactory(name: String): ThreadFactory {
        return object : ThreadFactory {
          private var nextId = 1
    
          override fun newThread(runnable: Runnable): Thread {
            return Thread(runnable, "$name-${nextId++}")
          }
        }
      }
    }
    
    fun getEnv(name: String) = System.getenv(name)
    
    val SYSTEM_FILE_SYSTEM = FileSystem.SYSTEM
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typeparam.go

    }
    
    // check may be nil
    func (check *Checker) newTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	// Always increment lastID, even if it is not used.
    	id := nextID()
    	if check != nil {
    		check.nextID++
    		id = check.nextID
    	}
    	typ := &TypeParam{check: check, id: id, obj: obj, index: -1, bound: constraint}
    	if obj.typ == nil {
    		obj.typ = typ
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/operations/TestListenerBuildOperationAdapterTest.groovy

            }
            1 * clock.currentTime >> 500
            0 * buildOperationIdFactory.nextId()
        }
    
        def "test output is exposed as progress"() {
            setup:
            _ * clock.currentTime >> 0
            long operationId = 1
            _ * buildOperationIdFactory.nextId() >> { operationId++ }
            TestOutputEvent testOutputEvent = new SimpleTestOutputEvent()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/go/types/context.go

    }
    
    // getID returns a unique ID for the type t.
    func (ctxt *Context) getID(t Type) int {
    	ctxt.mu.Lock()
    	defer ctxt.mu.Unlock()
    	id, ok := ctxt.originIDs[t]
    	if !ok {
    		id = ctxt.nextID
    		ctxt.originIDs[t] = id
    		ctxt.nextID++
    	}
    	return id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/context.go

    }
    
    // getID returns a unique ID for the type t.
    func (ctxt *Context) getID(t Type) int {
    	ctxt.mu.Lock()
    	defer ctxt.mu.Unlock()
    	id, ok := ctxt.originIDs[t]
    	if !ok {
    		id = ctxt.nextID
    		ctxt.originIDs[t] = id
    		ctxt.nextID++
    	}
    	return id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:29:21 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top