Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,871 for Handles (0.13 sec)

  1. src/runtime/cgo/handle.go

    //
    // The method panics if the handle is invalid.
    func (h Handle) Value() any {
    	v, ok := handles.Load(uintptr(h))
    	if !ok {
    		panic("runtime/cgo: misuse of an invalid Handle")
    	}
    	return v
    }
    
    // Delete invalidates a handle. This method should only be called once
    // the program no longer needs to pass the handle to C and the C code
    // no longer has a copy of the handle value.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. src/unique/handle_bench_test.go

    }
    
    func BenchmarkMakeManyMany(b *testing.B) {
    	benchmarkMake(b, testDataLarge[:])
    }
    
    func benchmarkMake(b *testing.B, testData []string) {
    	handles := make([]Handle[string], 0, len(testData))
    	for i := range testData {
    		handles = append(handles, Make(testData[i]))
    	}
    
    	b.ReportAllocs()
    	b.ResetTimer()
    
    	b.RunParallel(func(pb *testing.PB) {
    		i := 0
    		for pb.Next() {
    			_ = Make(testData[i])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/PropertyAnnotationHandler.java

    import java.lang.annotation.Annotation;
    
    /**
     * Handles validation, dependency handling, and skipping for a property marked with a given annotation.
     *
     * <p>Each handler must be registered as a global service.</p>
     */
    @ServiceScope(Scope.Global.class)
    public interface PropertyAnnotationHandler {
        /**
         * The annotation type which this handler is responsible for.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.td

       (IsConstTensor $filter),
       (IsInt32ElementType $conv),
       (HasStaticShapeConstraint $filter),
       (HasStaticShapeAtDimsConstraint<"3"> $input)],
      [], (addBenefit 10)>;
    
    // Same as ConvertTFConv2DToXLAConvOp but handles the case where input zero
    // point is dynaically calculated so not a constant.
    def ConvertTFConv2DToXLAConvOpDynamicRange : Pat<
      (TF_Conv2DOp:$conv
        (TF_SubOp:$input (TF_CastOp $input_i8, $truncate0), $input_zp),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  5. src/unique/handle.go

    	"internal/weak"
    	"runtime"
    	"sync"
    	_ "unsafe"
    )
    
    // Handle is a globally unique identity for some value of type T.
    //
    // Two handles compare equal exactly if the two values used to create the handles
    // would have also compared equal. The comparison of two handles is trivial and
    // typically much more efficient than comparing the values used to create them.
    type Handle[T comparable] struct {
    	value *T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. platforms/software/version-control/src/test/groovy/org/gradle/vcs/git/internal/DefaultGitVersionControlSpecSpec.groovy

        GitVersionControlSpec spec = new DefaultGitVersionControlSpec()
    
        def 'handles file urls'() {
            given:
            spec.url = new URI("file:/tmp/repos/foo")
    
            expect:
            spec.repoName == 'foo'
            spec.uniqueId == 'git-repo:file:/tmp/repos/foo'
            spec.displayName == 'Git repository at file:/tmp/repos/foo'
        }
    
        def 'handles urls which do not end in .git'() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ResultHandler.java

     * limitations under the License.
     */
    package org.gradle.tooling;
    
    /**
     * A handler for an asynchronous operation which returns an object of type T.
     *
     * @param <T> The result type.
     * @since 1.0-milestone-3
     */
    public interface ResultHandler<T> {
    
        /**
         * Handles successful completion of the operation.
         *
         * @param result the result
         * @since 1.0-milestone-3
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/vfs/impl/DefaultWatchableFileSystemDetectorTest.groovy

        def fileSystemsService = Stub(FileSystems)
        def detector = new DefaultWatchableFileSystemDetector(fileSystemsService)
    
        def "handles no file systems"() {
            fileSystemsService.fileSystems >> []
    
            expect:
            detect() == []
        }
    
        def "handles all supported"() {
            fileSystemsService.fileSystems >> [
                fs("/dev/supported", "/", "ext4"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/proxy/translatinghandler.go

    )
    
    // translatingHandler wraps the delegate handler, implementing the
    // http.Handler interface. The delegate handles all requests unless
    // the request satisfies the passed "shouldTranslate" function
    // (currently only for WebSocket/V5 request), in which case the translator
    // handles the request.
    type translatingHandler struct {
    	delegate        http.Handler
    	translator      http.Handler
    	shouldTranslate func(*http.Request) bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/gcimporter_test.go

    	testenv.MustHaveGoBuild(t)
    
    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    	compileAndImportPkg(t, "issue15920")
    }
    
    func TestIssue20046(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top